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: dc7680e859
("net/netvsc: support integrated VF")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
This commit is contained in:
parent
c578d8507b
commit
f2b76d22f8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user