On Wed, 16 Oct 2024 16:22:32 +0800 Chaoyong He <chaoyong...@corigine.com> wrote:
> From: Long Wu <long...@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...@corigine.com> > Reviewed-by: Chaoyong He <chaoyong...@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.