2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

netdev-dpdk: create queues on configured NUMA node

This patch makes sure that the tx and rx queues are allocated on the NUMA socket
chosen at device initalization time, instead of the NUMA socket 0.

Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
This commit is contained in:
Daniele Di Proietto
2014-06-04 15:05:58 -07:00
committed by Pravin B Shelar
parent 7d08d53ed5
commit d221ffa1e1

View File

@@ -369,8 +369,8 @@ dpdk_eth_dev_init(struct netdev_dpdk *dev) OVS_REQUIRES(dpdk_mutex)
} }
for (i = 0; i < NR_QUEUE; i++) { for (i = 0; i < NR_QUEUE; i++) {
diag = rte_eth_tx_queue_setup(dev->port_id, i, MAX_TX_QUEUE_LEN, 0, diag = rte_eth_tx_queue_setup(dev->port_id, i, MAX_TX_QUEUE_LEN,
&tx_conf); dev->socket_id, &tx_conf);
if (diag) { if (diag) {
VLOG_ERR("eth dev tx queue setup error %d",diag); VLOG_ERR("eth dev tx queue setup error %d",diag);
return diag; return diag;
@@ -378,7 +378,8 @@ dpdk_eth_dev_init(struct netdev_dpdk *dev) OVS_REQUIRES(dpdk_mutex)
} }
for (i = 0; i < NR_QUEUE; i++) { for (i = 0; i < NR_QUEUE; i++) {
diag = rte_eth_rx_queue_setup(dev->port_id, i, MAX_RX_QUEUE_LEN, 0, diag = rte_eth_rx_queue_setup(dev->port_id, i, MAX_RX_QUEUE_LEN,
dev->socket_id,
&rx_conf, dev->dpdk_mp->mp); &rx_conf, dev->dpdk_mp->mp);
if (diag) { if (diag) {
VLOG_ERR("eth dev rx queue setup error %d",diag); VLOG_ERR("eth dev rx queue setup error %d",diag);