numam-dpdk/drivers/net/enic
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
..
base net: add macro for MAC address print 2021-09-07 19:07:46 +02:00
enic_compat.h
enic_ethdev.c ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
enic_flow.c net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
enic_fm_flow.c net/enic: fix flow initialization error handling 2021-04-09 10:54:57 +02:00
enic_main.c net/enic: enable GENEVE offload via VNIC configuration 2021-05-11 23:52:26 +02:00
enic_res.c net: add macro for MAC address print 2021-09-07 19:07:46 +02:00
enic_res.h
enic_rxtx_common.h
enic_rxtx_vec_avx2.c
enic_rxtx.c net/enic: fix completion pointer calculation 2021-04-13 12:30:41 +02:00
enic_vf_representor.c ethdev: fix representor port ID search by name 2021-10-12 16:54:20 +02:00
enic.h net/enic: enable GENEVE offload via VNIC configuration 2021-05-11 23:52:26 +02:00
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00