summaryrefslogtreecommitdiff
path: root/examples/multi_process
diff options
context:
space:
mode:
authorKevin Laatz <kevin.laatz@intel.com>2018-01-12 10:48:44 +0000
committerThomas Monjalon <thomas@monjalon.net>2018-02-01 00:10:42 +0100
commit867a6c66ecf3d88e76367254e79bb9e7b936a830 (patch)
tree6dfff0dc52b5b91554b8565f8557838abd9066be /examples/multi_process
parent6c74ddeddf92d9937b13e6cf94ab828cb1cee476 (diff)
downloaddpdk-867a6c66ecf3d88e76367254e79bb9e7b936a830.zip
dpdk-867a6c66ecf3d88e76367254e79bb9e7b936a830.tar.gz
dpdk-867a6c66ecf3d88e76367254e79bb9e7b936a830.tar.xz
examples: increase default ring sizes to 1024
Increase the default RX/TX ring sizes to 1024/1024 to accommodate for NICs with higher throughput (25G, 40G etc) Signed-off-by: Kevin Laatz <kevin.laatz@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'examples/multi_process')
-rw-r--r--examples/multi_process/client_server_mp/mp_server/init.c4
-rw-r--r--examples/multi_process/l2fwd_fork/main.c4
-rw-r--r--examples/multi_process/symmetric_mp/main.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/multi_process/client_server_mp/mp_server/init.c b/examples/multi_process/client_server_mp/mp_server/init.c
index baad5c6..1c465cc 100644
--- a/examples/multi_process/client_server_mp/mp_server/init.c
+++ b/examples/multi_process/client_server_mp/mp_server/init.c
@@ -41,8 +41,8 @@
#define MBUFS_PER_PORT 1536
#define MBUF_CACHE_SIZE 512
-#define RTE_MP_RX_DESC_DEFAULT 512
-#define RTE_MP_TX_DESC_DEFAULT 512
+#define RTE_MP_RX_DESC_DEFAULT 1024
+#define RTE_MP_TX_DESC_DEFAULT 1024
#define CLIENT_QUEUE_RINGSIZE 128
#define NO_FLAGS 0
diff --git a/examples/multi_process/l2fwd_fork/main.c b/examples/multi_process/l2fwd_fork/main.c
index 2e56cc4..bc9ceb5 100644
--- a/examples/multi_process/l2fwd_fork/main.c
+++ b/examples/multi_process/l2fwd_fork/main.c
@@ -68,8 +68,8 @@ enum l2fwd_cmd{
/*
* Configurable number of RX/TX ring descriptors
*/
-#define RTE_TEST_RX_DESC_DEFAULT 128
-#define RTE_TEST_TX_DESC_DEFAULT 512
+#define RTE_TEST_RX_DESC_DEFAULT 1024
+#define RTE_TEST_TX_DESC_DEFAULT 1024
static uint16_t nb_rxd = RTE_TEST_RX_DESC_DEFAULT;
static uint16_t nb_txd = RTE_TEST_TX_DESC_DEFAULT;
diff --git a/examples/multi_process/symmetric_mp/main.c b/examples/multi_process/symmetric_mp/main.c
index 1c77205..1ada4ef 100644
--- a/examples/multi_process/symmetric_mp/main.c
+++ b/examples/multi_process/symmetric_mp/main.c
@@ -48,8 +48,8 @@
#define NB_MBUFS 64*1024 /* use 64k mbufs */
#define MBUF_CACHE_SIZE 256
#define PKT_BURST 32
-#define RX_RING_SIZE 128
-#define TX_RING_SIZE 512
+#define RX_RING_SIZE 1024
+#define TX_RING_SIZE 1024
#define PARAM_PROC_ID "proc-id"
#define PARAM_NUM_PROCS "num-procs"