2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

netdev-dpdk: use defined values for queues length

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-05-23 16:12:44 -07:00
committed by Pravin B Shelar
parent 691d39b2f9
commit a715f600c3

View File

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