From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Blunck Subject: [PATCH 2/2] bond: use rte_eth_dev_socket_id() Date: Wed, 26 Apr 2017 23:30:08 +0200 Message-ID: <1493242208-19526-2-git-send-email-jblunck@infradead.org> References: <1493242208-19526-1-git-send-email-jblunck@infradead.org> Cc: Wen Chiu , Stephen Hemminger To: dev@dpdk.org Return-path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id D17CF58FE for ; Wed, 26 Apr 2017 23:30:19 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id u65so383507wmu.3 for ; Wed, 26 Apr 2017 14:30:19 -0700 (PDT) In-Reply-To: <1493242208-19526-1-git-send-email-jblunck@infradead.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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 b8df536..f84553c 100644 --- a/drivers/net/bonding/rte_eth_bond_8023ad.c +++ b/drivers/net/bonding/rte_eth_bond_8023ad.c @@ -886,7 +886,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 == (uint8_t)LCORE_ID_ANY) socket_id = 0; -- 2.7.4