Commit 97f3efb6 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

hv_netvsc: set master device

The hyper-v transparent bonding should have used master_dev_link.
The netvsc device should look like a master bond device not
like the upper side of a tunnel.

This makes the semantics the same so that userspace applications
looking at network devices see the correct master relationshipship.

Fixes: 0c195567 ("netvsc: transparent VF management")
Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b2a96438
...@@ -1840,7 +1840,8 @@ static int netvsc_vf_join(struct net_device *vf_netdev, ...@@ -1840,7 +1840,8 @@ static int netvsc_vf_join(struct net_device *vf_netdev,
goto rx_handler_failed; goto rx_handler_failed;
} }
ret = netdev_upper_dev_link(vf_netdev, ndev, NULL); ret = netdev_master_upper_dev_link(vf_netdev, ndev,
NULL, NULL, NULL);
if (ret != 0) { if (ret != 0) {
netdev_err(vf_netdev, netdev_err(vf_netdev,
"can not set master device %s (err = %d)\n", "can not set master device %s (err = %d)\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment