hv_netvsc: change netvsc device default duplex to FULL
authorSimon Xiao <sixiao@microsoft.com>
Fri, 14 Apr 2017 21:42:58 +0000 (14:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2017 19:12:33 +0000 (15:12 -0400)
The netvsc device supports full duplex by default.
This warnings in log from bonding device which did not like
seeing UNKNOWN duplex.

Signed-off-by: Simon Xiao <sixiao@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c

index 97d0b5875cd5d180baf1cce616a9d6a4f20b812e..4421a6d0037579bbff80ee909d42510947f77690 100644 (file)
@@ -861,7 +861,7 @@ static void netvsc_init_settings(struct net_device *dev)
        struct net_device_context *ndc = netdev_priv(dev);
 
        ndc->speed = SPEED_UNKNOWN;
-       ndc->duplex = DUPLEX_UNKNOWN;
+       ndc->duplex = DUPLEX_FULL;
 }
 
 static int netvsc_get_link_ksettings(struct net_device *dev,