]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Oct 2022 08:41:19 +0000 (09:41 +0100)
commitdcaf6313202a02cee13302a04a9b0503352ddef2
treee37a52cd6b27074aac0e635c0cdc9faca2987f20
parentda54c5f4b5b547bab4c38f3356d0f779d9ad2098
hv_netvsc: Fix race between VF offering and VF association message from host

commit 365e1ececb2905f94cc10a5817c5b644a32a3ae2 upstream.

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: 00d7ddba11436 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c