numam-dpdk/drivers
Viacheslav Galaktionov ff4e52efb3 ethdev: fix representor port ID search by name
The patch is required for all PMDs which do not provide representors
info on the representor itself.

The function, rte_eth_representor_id_get(), is used in
eth_representor_cmp() which is required in ethdev class iterator to
search ethdev port ID by name (representor case). Before the patch
the function is called on the representor itself and tries to get
representors info to match.

Search of port ID by name is used after hotplug to find out port ID
of the just plugged device.

Getting a list of representors from a representor does not make sense.
Instead, a backer device should be used.

To this end, extend the rte_eth_dev_data structure to include the port ID
of the backing device for representors.

Signed-off-by: Viacheslav Galaktionov <viacheslav.galaktionov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
Reviewed-by: Xueming Li <xuemingl@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
2021-10-12 16:54:20 +02:00
..
baseband baseband/la12xx: support enqueue and dequeue 2021-10-18 20:12:08 +02:00
bus bus/vmbus: fix ring buffer mapping in secondary process 2021-10-13 13:55:09 +02:00
common mempool: add namespace to flags 2021-10-20 10:00:16 +02:00
compress compress/mlx5: refactor HW queue object 2021-10-05 18:15:40 +02:00
crypto crypto/dpaa_sec: support AEAD and proto with raw API 2021-10-17 19:32:13 +02:00
dma dmadev: add burst capacity API 2021-10-18 11:17:30 +02:00
event mempool: add namespace to internal helpers 2021-10-20 10:00:18 +02:00
mempool mempool: add namespace to driver register macro 2021-10-20 10:00:18 +02:00
net ethdev: fix representor port ID search by name 2021-10-12 16:54:20 +02:00
raw raw/octeontx2_ep: remove driver 2021-10-18 18:34:04 +02:00
regex regex/mlx5: refactor HW queue objects 2021-10-05 18:15:40 +02:00
vdpa common/mlx5: share DevX queue pair operations 2021-10-05 18:15:40 +02:00
meson.build dmadev: introduce DMA device library 2021-10-17 20:49:57 +02:00