summaryrefslogtreecommitdiff
path: root/drivers/net/netvsc/hn_ethdev.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2018-12-13 17:26:21 -0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-12-21 16:22:40 +0100
commitf2b76d22f85694864bbcd0f88267de9ef02d75c0 (patch)
treee863774b9655e88a70c73205a3130821b5538005 /drivers/net/netvsc/hn_ethdev.c
parentc578d8507b4325747bbdb3993774e59fbad45d84 (diff)
downloaddpdk-f2b76d22f85694864bbcd0f88267de9ef02d75c0.zip
dpdk-f2b76d22f85694864bbcd0f88267de9ef02d75c0.tar.gz
dpdk-f2b76d22f85694864bbcd0f88267de9ef02d75c0.tar.xz
net/netvsc: fix probe when VF not found
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>
Diffstat (limited to 'drivers/net/netvsc/hn_ethdev.c')
-rw-r--r--drivers/net/netvsc/hn_ethdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c
index 6c40ac7..49b7ca7 100644
--- a/drivers/net/netvsc/hn_ethdev.c
+++ b/drivers/net/netvsc/hn_ethdev.c
@@ -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;