Commit 415aa4a5 authored by Gaurav Kohli's avatar Gaurav Kohli Committed by Lipeng Sang
Browse files

hv_netvsc: Fix race between VF offering and VF association message from host

stable inclusion
from stable-v5.10.152
commit dcaf6313202a02cee13302a04a9b0503352ddef2
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I73HJ0

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=dcaf6313202a02cee13302a04a9b0503352ddef2



--------------------------------

commit 365e1ece 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: 00d7ddba ("hv_netvsc: pair VF based on serial number")
Reviewed-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarGaurav Kohli <gauravkohli@linux.microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarLipeng Sang <sanglipeng1@jd.com>
parent a68acfd9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment