summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaggai Eran <haggai.eran@gmail.com>2020-02-04 14:32:19 +0200
committerDamjan Marion <dmarion@me.com>2020-02-05 09:20:26 +0000
commita80f8f371733a73a0fa8351a66bd1e519f1b90cd (patch)
tree2b7ed2ff364d5dc52b666ab8bec829c2d9ed59a9
parent2347278d9530690e0cec815652f5749def673404 (diff)
dpdk: use port_id as interface name suffix for representors
Type: feature Representor devices include a port ID as part of their switch_info struct, and it is helpful to use that in the interface name. Signed-off-by: Haggai Eran <haggai.eran@gmail.com> Change-Id: Id24627e7daf857f8b0e8ace2f592c098678081c7
-rw-r--r--src/plugins/dpdk/device/init.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c
index 5d0e5a2605d..f668d98db5d 100644
--- a/src/plugins/dpdk/device/init.c
+++ b/src/plugins/dpdk/device/init.c
@@ -295,8 +295,14 @@ dpdk_lib_init (dpdk_main_t * dm)
else
devconf = &dm->conf->default_devconf;
+ /* Handle representor devices that share the same PCI ID */
+ if (dev_info.switch_info.domain_id != RTE_ETH_DEV_SWITCH_DOMAIN_ID_INVALID)
+ {
+ if (dev_info.switch_info.port_id != (uint16_t)-1)
+ xd->interface_name_suffix = format (0, "%d", dev_info.switch_info.port_id);
+ }
/* Handle interface naming for devices with multiple ports sharing same PCI ID */
- if (pci_dev &&
+ else if (pci_dev &&
((next_port_id = rte_eth_find_next (i + 1)) != RTE_MAX_ETHPORTS))
{
struct rte_eth_dev_info di = { 0 };
h' size='10' name='q' value=''/>
path: root/resources/job_specs/report_coverage/3n-icx/l2-29.md
blob: c8ada1014943f1d3f2f69176dd1c5daf2294d0da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 3n-icx
## ./l2
### mellanox-cx6dx
#### rdma-core
# ##### eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
# 1c AND 64b AND ndrpdr AND cx6dx AND drv_rdma_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
# 2c AND 64b AND ndrpdr AND cx6dx AND drv_rdma_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
# 4c AND 64b AND ndrpdr AND cx6dx AND drv_rdma_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
# 1c AND 1518b AND ndrpdr AND cx6dx AND drv_rdma_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
# 2c AND 1518b AND ndrpdr AND cx6dx AND drv_rdma_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
# 1c AND 9000b AND ndrpdr AND cx6dx AND drv_rdma_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
# 1c AND imix AND ndrpdr AND cx6dx AND drv_rdma_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
# 2c AND imix AND ndrpdr AND cx6dx AND drv_rdma_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
# 4c AND imix AND ndrpdr AND cx6dx AND drv_rdma_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
#### mlx5-core
##### eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
1c AND 64b AND ndrpdr AND cx6dx AND drv_mlx5_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
2c AND 64b AND ndrpdr AND cx6dx AND drv_mlx5_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
4c AND 64b AND ndrpdr AND cx6dx AND drv_mlx5_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
1c AND 1518b AND ndrpdr AND cx6dx AND drv_mlx5_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
2c AND 1518b AND ndrpdr AND cx6dx AND drv_mlx5_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
1c AND 9000b AND ndrpdr AND cx6dx AND drv_mlx5_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
1c AND imix AND ndrpdr AND cx6dx AND drv_mlx5_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
2c AND imix AND ndrpdr AND cx6dx AND drv_mlx5_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows
4c AND imix AND ndrpdr AND cx6dx AND drv_mlx5_core AND eth-l2bdbasemaclrn-macip-iacl10sl-10kflows