[dpdk-dev] [PATCH v3] net/failsafe: fix PCI devices init

Ferruh Yigit ferruh.yigit at intel.com
Mon Oct 23 21:24:52 CEST 2017


On 10/19/2017 2:15 PM, Raslan Darawsheh wrote:
> When trying to attach a port as a sub-device, the ethdev port
> was compared with devargs.
> In the case of a PCI device, the name in devargs is the PCI address.
> And since DPDK 17.08, the devargs name of the underlying device was
> used to match an ethdev port:
>         a1e7c17555e8 ("ethdev: use device name from device structure")
> 
> But the recent commit 72e3efb149cc has reverted this wrong matching
> to use the ethdev port name as identifier of the port.
> It impacts functions like rte_eth_dev_allocated() used in failsafe
> for matching ports with given devargs.
> The fix is to search for matching devargs in underlying device of
> all ethdev ports.
> If many ports match the same PCI device, only the first one is matched.
> 
> This limitation was already present in previous implementation of
> rte_eth_dev_allocated(), and must be adressed later with a better
> devargs syntax.
> 
> Fixes: 72e3efb149cc ("ethdev: revert use port name from device structure")
> 
> Signed-off-by: Raslan Darawsheh <rasland at mellanox.com>
> Acked-by: Gaetan Rivet <gaetan.rivet at 6wind.com>

Applied to dpdk-next-net/master, thanks.


More information about the dev mailing list