]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.19.54/hv_netvsc-set-probe-mode-to-sync.patch
Linux 5.1.13
[thirdparty/kernel/stable-queue.git] / releases / 4.19.54 / hv_netvsc-set-probe-mode-to-sync.patch
1 From foo@baz Wed 19 Jun 2019 02:34:37 PM CEST
2 From: Haiyang Zhang <haiyangz@microsoft.com>
3 Date: Thu, 13 Jun 2019 21:06:53 +0000
4 Subject: hv_netvsc: Set probe mode to sync
5
6 From: Haiyang Zhang <haiyangz@microsoft.com>
7
8 [ Upstream commit 9a33629ba6b26caebd73e3c581ba1e6068c696a7 ]
9
10 For better consistency of synthetic NIC names, we set the probe mode to
11 PROBE_FORCE_SYNCHRONOUS. So the names can be aligned with the vmbus
12 channel offer sequence.
13
14 Fixes: af0a5646cb8d ("use the new async probing feature for the hyperv drivers")
15 Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
16 Signed-off-by: David S. Miller <davem@davemloft.net>
17 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 ---
19 drivers/net/hyperv/netvsc_drv.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22 --- a/drivers/net/hyperv/netvsc_drv.c
23 +++ b/drivers/net/hyperv/netvsc_drv.c
24 @@ -2405,7 +2405,7 @@ static struct hv_driver netvsc_drv = {
25 .probe = netvsc_probe,
26 .remove = netvsc_remove,
27 .driver = {
28 - .probe_type = PROBE_PREFER_ASYNCHRONOUS,
29 + .probe_type = PROBE_FORCE_SYNCHRONOUS,
30 },
31 };
32