From mboxrd@z Thu Jan 1 00:00:00 1970 From: Declan Doherty Subject: [PATCH v2 2/2] bond: use rte_eth_dev_socket_id() Date: Fri, 30 Jun 2017 15:34:49 +0100 Message-ID: <20170630143449.13990-2-declan.doherty@intel.com> References: <20170630143449.13990-1-declan.doherty@intel.com> Cc: jblunck@infradead.org, Wen Chiu , Stephen Hemminger , Declan Doherty To: dev@dpdk.org Return-path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 5934A58F6 for ; Fri, 30 Jun 2017 16:35:51 +0200 (CEST) In-Reply-To: <20170630143449.13990-1-declan.doherty@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Jan Blunck The bonded device does not have to be a PCI device. Use the rte_ethdev functions instead. Signed-off-by: Wen Chiu Signed-off-by: Stephen Hemminger Signed-off-by: Jan Blunck Signed-off-by: Declan Doherty --- drivers/net/bonding/rte_eth_bond_8023ad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.c b/drivers/net/bonding/rte_eth_bond_8023ad.c index 7826296..65dc75b 100644 --- a/drivers/net/bonding/rte_eth_bond_8023ad.c +++ b/drivers/net/bonding/rte_eth_bond_8023ad.c @@ -887,7 +887,7 @@ bond_mode_8023ad_activate_slave(struct rte_eth_dev *bond_dev, uint8_t slave_id) RTE_ASSERT(port->rx_ring == NULL); RTE_ASSERT(port->tx_ring == NULL); - socket_id = rte_eth_devices[slave_id].data->numa_node; + socket_id = rte_eth_dev_socket_id(slave_id); if (socket_id == (int)LCORE_ID_ANY) socket_id = rte_socket_id(); -- 2.9.4