numam-dpdk/lib/librte_ethdev
Xueming Li df7547a6a2 ethdev: add helper function to get representor ID
The NIC can have multiple PCIe links and can be attached to multiple
hosts, for example the same single NIC can be shared for multiple server
units in the rack. On each PCIe link NIC can provide multiple PFs and
VFs/SFs based on these ones. The full representor identifier consists of
three indices - controller index, PF index, and VF or SF index (if any).

SR-IOV and SubFunction are created on top of PF. PF index is introduced
because there might be multiple PFs in the bonding configuration and
only bonding device is probed.

In eth representor comparator callback, ethdev representor ID was
compared with devarg. Since controller index and PF index not compared,
callback returned representor from other PF or controller.

This patch adds new API to get representor ID from controller, pf and
vf/sf index. Representor comparer callback get representor ID then
compare with device representor ID.

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
2021-03-17 19:12:09 +01:00
..
ethdev_driver.h ethdev: add helper function to get representor ID 2021-03-17 19:12:09 +01:00
ethdev_pci.h ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
ethdev_private.c ethdev: support multi-host in representor 2021-03-16 20:15:29 +01:00
ethdev_private.h ethdev: refactor representor port list parsing 2021-03-16 20:15:29 +01:00
ethdev_profile.c ethdev: change vtune profiling approach 2018-08-28 15:27:39 +02:00
ethdev_profile.h ethdev: fix build when vtune profiling is on 2020-04-21 13:57:06 +02:00
ethdev_trace_points.c trace: simplify trace point registration 2020-07-05 21:34:21 +02:00
ethdev_vdev.h ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
meson.build build: add header includes check 2021-01-29 20:59:37 +01:00
rte_class_eth.c ethdev: add helper function to get representor ID 2021-03-17 19:12:09 +01:00
rte_dev_info.h ethdev: add definitions for EEPROM standards 2019-10-23 16:43:08 +02:00
rte_eth_ctrl.h ethdev: fix missing header include 2021-01-21 10:21:40 +01:00
rte_ethdev_core.h ethdev: make flow API thread safe 2020-10-16 00:44:58 +02:00
rte_ethdev_trace_fp.h ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
rte_ethdev_trace.h ethdev: change stop operation callback to return int 2020-10-16 22:26:41 +02:00
rte_ethdev.c ethdev: add helper function to get representor ID 2021-03-17 19:12:09 +01:00
rte_ethdev.h ethdev: add API to get representor info 2021-03-17 19:11:56 +01:00
rte_flow_driver.h ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
rte_flow.c ethdev: introduce generic modify flow action 2021-01-19 03:30:32 +01:00
rte_flow.h ethdev: document generic modify flow action 2021-03-09 14:30:38 +01:00
rte_mtr_driver.h ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
rte_mtr.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
rte_mtr.h ethdev: replace license text with SPDX tag 2019-07-29 15:07:48 +02:00
rte_tm_driver.h ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
rte_tm.c ethdev: rename folder to library name 2018-04-27 18:01:00 +01:00
rte_tm.h ethdev: support TM for shaper config in packet mode 2020-09-18 18:55:10 +02:00
version.map ethdev: add helper function to get representor ID 2021-03-17 19:12:09 +01:00