diff options
author | Damjan Marion <damarion@cisco.com> | 2018-05-30 11:14:10 +0200 |
---|---|---|
committer | Marco Varlese <marco.varlese@suse.de> | 2018-05-30 10:36:54 +0000 |
commit | ed256991f326ce91dd12f6584baf81b2aa5aae4a (patch) | |
tree | ef3022beb961c1f9fcb1f05f49b6afb489d99476 /src/plugins/dpdk/device/init.c | |
parent | b0861820b92ede0f2022151c275458eb1b702e6d (diff) |
dpdk: rename port_id to *_instance_num
port_id be used for dpdk port_id
Change-Id: Ia7d8cdc5dec2ad658c11f9c0f3ef8005a470ac3c
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device/init.c')
-rw-r--r-- | src/plugins/dpdk/device/init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c index f147bcb6e11..7156e69b4dc 100644 --- a/src/plugins/dpdk/device/init.c +++ b/src/plugins/dpdk/device/init.c @@ -207,8 +207,8 @@ dpdk_lib_init (dpdk_main_t * dm) uword *p_hqos; u32 next_hqos_cpu = 0; - u8 af_packet_port_id = 0; - u8 bond_ether_port_id = 0; + u8 af_packet_instance_num = 0; + u8 bond_ether_instance_num = 0; last_pci_addr.as_u32 = ~0; dm->hqos_cpu_first_index = 0; @@ -460,12 +460,12 @@ dpdk_lib_init (dpdk_main_t * dm) case VNET_DPDK_PMD_AF_PACKET: xd->port_type = VNET_DPDK_PORT_TYPE_AF_PACKET; - xd->port_id = af_packet_port_id++; + xd->af_packet_instance_num = af_packet_instance_num++; break; case VNET_DPDK_PMD_BOND: xd->port_type = VNET_DPDK_PORT_TYPE_ETH_BOND; - xd->port_id = bond_ether_port_id++; + xd->bond_instance_num = bond_ether_instance_num++; break; case VNET_DPDK_PMD_VIRTIO_USER: @@ -1556,7 +1556,7 @@ dpdk_process (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f) /* Set MAC of bounded interface to that of 1st slave link */ dpdk_log_info ("Set MAC for bond port %d BondEthernet%d", - i, xd->port_id); + i, xd->bond_instance_num); rv = rte_eth_bond_mac_address_set (i, (struct ether_addr *) addr); if (rv) |