Skip to content

Commit b1dd90c

Browse files
kattisrinivasandavem330
authored andcommitted
netvsc: Fix a bug in sub-channel handling
All netvsc channels are handled via NAPI. Setup the "read mode" correctly for the netvsc sub-channels. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 71ee030 commit b1dd90c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/net/hyperv/rndis_filter.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,11 @@ static void netvsc_sc_open(struct vmbus_channel *new_sc)
10021002
if (!nvchan->mrc.buf)
10031003
return;
10041004

1005+
/* Because the device uses NAPI, all the interrupt batching and
1006+
* control is done via Net softirq, not the channel handling
1007+
*/
1008+
set_channel_read_mode(new_sc, HV_CALL_ISR);
1009+
10051010
ret = vmbus_open(new_sc, nvscdev->ring_size * PAGE_SIZE,
10061011
nvscdev->ring_size * PAGE_SIZE, NULL, 0,
10071012
netvsc_channel_cb, nvchan);

0 commit comments

Comments
 (0)