Skip to content

Commit 1b01994

Browse files
shemmingerdavem330
authored andcommitted
netvsc: force link update after MTU change
If two MTU changes are in less than update interval (2 seconds), then the netvsc network device may get stuck with no carrier. The netvsc driver debounces link status events which is fine for unsolicited updates, but blocks getting the update after down/up from MTU reinitialization. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9492f42 commit 1b01994

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/hyperv/netvsc_drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,7 @@ static int netvsc_set_channels(struct net_device *net,
783783
ret = netvsc_open(net);
784784

785785
/* We may have missed link change notifications */
786+
net_device_ctx->last_reconfig = 0;
786787
schedule_delayed_work(&net_device_ctx->dwork, 0);
787788

788789
return ret;

0 commit comments

Comments
 (0)