Skip to content

Commit 88275ed

Browse files
committed
Merge branch 'netvsc-next'
K. Y. Srinivasan says: ==================== netvsc: Fix miscellaneous issues Fix miscellaneous issues. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 71ee030 + 386f576 commit 88275ed

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

drivers/net/hyperv/netvsc_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ static int netvsc_change_mtu(struct net_device *ndev, int mtu)
855855
struct hv_device *hdev = ndevctx->device_ctx;
856856
struct netvsc_device_info device_info;
857857
bool was_running;
858-
int ret;
858+
int ret = 0;
859859

860860
if (!nvdev || nvdev->destroy)
861861
return -ENODEV;

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)