[dpdk-stable] [dpdk-dev] [PATCH v2 1/2] net/nfp: improve PF probing logic

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Thu Jul 1 16:33:13 CEST 2021


On 6/9/21 5:08 PM, Heinrich Kuhn wrote:
> When using rte_eth_dev_pci_generic_probe() during probing a
> rte_eth_dev will be created with the name field corresponding to the PCI
> address of the device. NFP4000/6000 devices only have a single PF (but
> potentially multiple physical ports). This means that in a simple two
> port example the rte_eth_devices[] array will be populated with two
> devices: 0000:02:00.0 and 0000:02:00.0_port1. This is inconsistent and
> not ideal. It will also cause issues when a secondary process tries to
> attach to these ports.
> 
> This patch removes the use of rte_eth_dev_pci_generic_probe() and
> allocates eth_dev's for each physical port during PF initialization,
> giving them more consistent names.
> 
> Fixes: 5e15e799d697 ("net/nfp: create separate entity for PF device")
> 
> Signed-off-by: Heinrich Kuhn <heinrich.kuhn at netronome.com>
> Signed-off-by: Simon Horman <simon.horman at corigine.com>

Cc: stable at dpdk.org

Applied, thanks


More information about the stable mailing list