numam-dpdk/drivers/net/mlx5/windows
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
..
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
mlx5_ethdev_os.c net/mlx5: fix link speed calculation on Windows 2021-04-13 13:22:54 +02:00
mlx5_flow_os.c eal: rename thread TLS API 2021-03-26 09:22:39 +01:00
mlx5_flow_os.h net/mlx5: add TCP and IPv6 to supported items for Windows 2021-07-08 22:09:13 +02:00
mlx5_mp_os.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
mlx5_os.c ethdev: fix representor port ID search by name 2021-10-12 16:54:20 +02:00
mlx5_os.h net/mlx5: fix device name size on Windows 2021-01-08 16:03:08 +01:00
mlx5_vlan_os.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00