netdev-dpdk: Increase tx queue size and rx batch size
authorDaniele Di Proietto <ddiproietto@vmware.com>
Wed, 23 Jul 2014 00:09:10 +0000 (17:09 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Wed, 23 Jul 2014 03:06:02 +0000 (20:06 -0700)
These values has been found to give the best throughput
in simple cases (1 flow 64 bytes UDP packets).

Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
lib/netdev-dpdk.c

index 62c9a0c..b45e367 100644 (file)
@@ -123,8 +123,8 @@ static const struct rte_eth_txconf tx_conf = {
     .txq_flags = ETH_TXQ_FLAGS_NOMULTSEGS|ETH_TXQ_FLAGS_NOOFFLOADS,
 };
 
-enum { MAX_RX_QUEUE_LEN = 64 };
-enum { MAX_TX_QUEUE_LEN = 64 };
+enum { MAX_RX_QUEUE_LEN = 192 };
+enum { MAX_TX_QUEUE_LEN = 384 };
 enum { DRAIN_TSC = 200000ULL };
 
 static int rte_eal_init_ret = ENODEV;