examples/l2fwd-keepalive: fix mbuf pool size
authorLouise Kilheeney <louise.kilheeney@intel.com>
Mon, 27 Apr 2020 14:57:43 +0000 (15:57 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 11 May 2020 15:18:58 +0000 (17:18 +0200)
commit0c2b79e8d59f31bc4bd39a7cd8f1960689465979
tree5c546a3f633f41f5a5e940963e678210e27f58d3
parent299e282f62f7f922dfa7724aaacd52bf1bd386b0
examples/l2fwd-keepalive: fix mbuf pool size

MBUF pool of size 8192 was causing packet loss when using four ports. To
fix this issue this patch specifies the number of MBUF's per port
instead of having one set MBUF pool size, this way it will adapt to any
number of ports.

Fixes: e64833f2273a ("examples/l2fwd-keepalive: add sample application")
Cc: stable@dpdk.org
Signed-off-by: Louise Kilheeney <louise.kilheeney@intel.com>
Tested-by: Xi Zhang <xix.zhang@intel.com>
examples/l2fwd-keepalive/main.c