diff options
author | Long Li <longli@microsoft.com> | 2021-01-09 03:53:42 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-13 06:58:36 +0300 |
commit | 8b31f8c982b738e4130539e47f03967c599d8e22 (patch) | |
tree | c42017d564f20daf9933146fc72bce18a5699218 /drivers/net/hyperv/netvsc_drv.c | |
parent | 69d25a6cf4cadf756460a1bf82996ea240539999 (diff) | |
download | linux-8b31f8c982b738e4130539e47f03967c599d8e22.tar.xz |
hv_netvsc: Wait for completion on request SWITCH_DATA_PATH
The completion indicates if NVSP_MSG4_TYPE_SWITCH_DATA_PATH has been
processed by the VSP. The traffic is steered to VF or synthetic after we
receive this completion.
Signed-off-by: Long Li <longli@microsoft.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/hyperv/netvsc_drv.c')
-rw-r--r-- | drivers/net/hyperv/netvsc_drv.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 5dd4f37afa3d..64ae5f4e974e 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -2400,7 +2400,6 @@ static int netvsc_vf_changed(struct net_device *vf_netdev) if (net_device_ctx->data_path_is_vf == vf_is_up) return NOTIFY_OK; - net_device_ctx->data_path_is_vf = vf_is_up; netvsc_switch_datapath(ndev, vf_is_up); netdev_info(ndev, "Data path switched %s VF: %s\n", |