aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorSimon Xiao <sixiao@microsoft.com>2017-04-14 14:42:58 -0700
committerDavid S. Miller <davem@davemloft.net>2017-04-17 15:12:33 -0400
commitf3c9d40ee12926f330a1dfebce0bebadd1406ba6 (patch)
treeb976a32ddaf54af1c338c2001010ccc943c381d3 /drivers/net
parentnetvsc: fix RCU warning in get_stats (diff)
downloadlinux-dev-f3c9d40ee12926f330a1dfebce0bebadd1406ba6.tar.xz
linux-dev-f3c9d40ee12926f330a1dfebce0bebadd1406ba6.zip
hv_netvsc: change netvsc device default duplex to FULL
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/hyperv/netvsc_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index 97d0b5875cd5..4421a6d00375 100644
--- a/drivers/net/hyperv/netvsc_drv.c
+++ b/drivers/net/hyperv/netvsc_drv.c
@@ -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,