]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: Fix race between VF offering and VF association message from host
authorGaurav Kohli <gauravkohli@linux.microsoft.com>
Thu, 6 Oct 2022 05:52:59 +0000 (22:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Oct 2022 07:43:58 +0000 (08:43 +0100)
commit8ee14a60881aad7b16c9c4d685fa9f917567331d
tree7b397b41e30b0e5d4a9c6323acbb192552caf08c
parent482ca973ac66559bbaa0c0ab12f5b769e9a59f76
hv_netvsc: Fix race between VF offering and VF association message from host

During vm boot, there might be possibility that vf registration
call comes before the vf association from host to vm.

And this might break netvsc vf path, To prevent the same block
vf registration until vf bind message comes from host.

Cc: stable@vger.kernel.org
Fixes: 86bec1e3179c5 ("hv_netvsc: pair VF based on serial number")
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Gaurav Kohli <gauravkohli@linux.microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c