git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aab2161
)
net/bonding: avoid allocating mempool on unknown socket
author
Eric Kinzie
<ekinzie@brocade.com>
Fri, 30 Jun 2017 14:34:48 +0000
(15:34 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:57 +0000
(15:00 +0200)
If the numa node is unknown, use the value from rte_socket_id() to avoid
an allocation failure.
Signed-off-by: Eric Kinzie <ekinzie@brocade.com>
Signed-off-by: Declan Doherty <declan.doherty@intel.com>
drivers/net/bonding/rte_eth_bond_8023ad.c
patch
|
blob
|
history
diff --git
a/drivers/net/bonding/rte_eth_bond_8023ad.c
b/drivers/net/bonding/rte_eth_bond_8023ad.c
index
57b9b32
..
7826296
100644
(file)
--- a/
drivers/net/bonding/rte_eth_bond_8023ad.c
+++ b/
drivers/net/bonding/rte_eth_bond_8023ad.c
@@
-886,7
+886,10
@@
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;
+ if (socket_id == (int)LCORE_ID_ANY)
+ socket_id = rte_socket_id();
element_size = sizeof(struct slow_protocol_frame) +
RTE_PKTMBUF_HEADROOM;