From: Stephen Hemminger Date: Fri, 14 Dec 2018 01:26:21 +0000 (-0800) Subject: net/netvsc: fix probe when VF not found X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f2b76d22f85694864bbcd0f88267de9ef02d75c0;p=dpdk.git 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 --- diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c index 6c40ac78dc..49b7ca7b22 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;