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 <[email protected]> --- v2: decrease by one on DPDK's recommendation lib/netdev-odp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.9.1 _______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
