[PATCH] examples/l3fwd: support setting the data size of mbuf
Stephen Hemminger
stephen at networkplumber.org
Wed Oct 16 17:02:42 CEST 2024
On Wed, 16 Oct 2024 16:22:32 +0800
Chaoyong He <chaoyong.he at corigine.com> wrote:
> From: Long Wu <long.wu at corigine.com>
>
> The previous code used a macro as the data size for mbuf
> to create the mempool and users cannot modify the size.
>
> Now modify the code to support setting the data size of
> mbuf by '--mbuf-size' parameter. If user does not add the
> parameter in start command line, the default size is still
> 'RTE_MBUF_DEFAULT_BUF_SIZE'.
>
> Examples:
> dpdk-l3fwd -l 0-3 -- -p 0x03 --mbuf-size=4096
>
> Signed-off-by: Long Wu <long.wu at corigine.com>
> Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>
Why not automatically determine the mbuf size based on mtu?
Would be more natural.
L3fwd functions as a test program and often used as a starting
point for best practices for doing new applications.
More information about the dev
mailing list