diff mbox

[v2,3/6] netdev-odp: Increase packet pool size

Message ID 1427397805-27395-4-git-send-email-zoltan.kiss@linaro.org
State New
Headers show

Commit Message

Zoltan Kiss March 26, 2015, 7:23 p.m. UTC
DPDK needs this otherwise it saturates the whole pool too fast. For some reason
it doesn't work properly if the pool size is too small. Use a  2^q - 1 number
as suggested by rte_mempool_create.

Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
---
v2: decrease by one on DPDK's recommendation

 lib/netdev-odp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/lib/netdev-odp.c b/lib/netdev-odp.c
index 385401f..ae944f7 100644
--- a/lib/netdev-odp.c
+++ b/lib/netdev-odp.c
@@ -49,7 +49,7 @@ 
 
 VLOG_DEFINE_THIS_MODULE(odp);
 
-#define SHM_PKT_POOL_NUM_BUFS  512
+#define SHM_PKT_POOL_NUM_BUFS  32768 - 1
 #define SHM_PKT_POOL_BUF_SIZE  1856
 
 #define SHM_OFPBUF_NUM_BUFS      512