]> git.droids-corp.org - dpdk.git/commitdiff
net/netvsc: fix probe when VF not found
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 14 Dec 2018 01:26:21 +0000 (17:26 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Dec 2018 15:22:40 +0000 (16:22 +0100)
It is possible that the VF device exists but DPDK doesn't know
about it. This could happen if device was blacklisted or more
likely the necessary device (Mellanox) was not part of the DPDK
configuration.

In either case, the right thing to do is just keep working
but only with the slower para-virtual device.

Fixes: dc7680e8597c ("net/netvsc: support integrated VF")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
drivers/net/netvsc/hn_ethdev.c

index 6c40ac78dce58be8f9f85552f8803eb97b77ac83..49b7ca7b22441da11dd512c4d64e1551959ccecc 100644 (file)
@@ -793,7 +793,7 @@ eth_hn_dev_init(struct rte_eth_dev *eth_dev)
 
                err = hn_vf_add(eth_dev, hv);
                if (err)
-                       goto failed;
+                       hv->vf_present = 0;
        }
 
        return 0;