From: Jan Blunck Date: Fri, 30 Jun 2017 14:34:49 +0000 (+0100) Subject: net/bonding: use ethdev API to get socket X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=dce8a093de6b70219287be3e4ed59628d19770fe;p=dpdk.git net/bonding: use ethdev API to get socket 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 --- diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.c b/drivers/net/bonding/rte_eth_bond_8023ad.c index 7826296e83..65dc75b993 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();