From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP; 30 Jun 2017 07:35:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,286,1496127600"; d="scan'208";a="103188137" Received: from dwdohert-dpdk.ir.intel.com ([163.33.210.152]) by orsmga004.jf.intel.com with ESMTP; 30 Jun 2017 07:35:49 -0700 From: Declan Doherty To: dev@dpdk.org Cc: jblunck@infradead.org, Wen Chiu , Stephen Hemminger , Declan Doherty Date: Fri, 30 Jun 2017 15:34:49 +0100 Message-Id: <20170630143449.13990-2-declan.doherty@intel.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170630143449.13990-1-declan.doherty@intel.com> References: <20170630143449.13990-1-declan.doherty@intel.com> Subject: [dpdk-dev] [PATCH v2 2/2] bond: use rte_eth_dev_socket_id() X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2017 14:35:51 -0000 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