[PATCH v2] examples/l3fwd: support setting the data size of mbuf

lihuisong (C) lihuisong at huawei.com
Fri Oct 18 04:50:35 CEST 2024


在 2024/10/18 10:42, Chaoyong He 写道:
> 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>
> Acked-by: Morten Brørup <mb at smartsharesystems.com>
>

Acked-by: Huisong Li<lihuisong at huawei.com>



More information about the dev mailing list