[PATCH v8 3/4] app/testpmd: add rxhdrs commands and parameters
Andrew Rybchenko
andrew.rybchenko at oktetlabs.ru
Thu Oct 6 12:12:05 CEST 2022
On 10/6/22 02:18, Yuan Wang wrote:
> Add command line parameter:
> --rxhdrs=eth[,ipv4,udp]
>
> Set the protocol_hdr of segments to scatter packets on receiving if
> split feature is engaged. And the queues with BUFFER_SPLIT flag.
>
> Add interactive mode command:
> testpmd>set rxhdrs eth,ipv4,udp
> (protocol sequence should be valid)
>
> The protocol split feature is off by default. To enable protocol split,
> you need:
> 1. Start testpmd with multiple mempools. E.g. --mbuf-size=2048,2048
> 2. Configure Rx queue with rx_offload buffer split on.
> 3. Set the protocol type of buffer split. E.g. set rxhdrs eth,eth-ipv4
> (default protocols of testpmd : eth|ipv4|ipv6|ipv4-tcp|ipv6-tcp|
> ipv4-udp|ipv6-udp|ipv4-sctp|ipv6-sctp|grenat|inner-eth|
> inner-ipv4|inner-ipv6|inner-ipv4-tcp|inner-ipv6-tcp|
> inner-ipv4-udp|inner-ipv6-udp|inner-ipv4-sctp|inner-ipv6-sctp)
> Above protocols can be configured in testpmd. But the configuration can
> only be applied when it is supported by specific pmd.
>
> Signed-off-by: Yuan Wang <yuanx.wang at intel.com>
> Signed-off-by: Xuan Ding <xuan.ding at intel.com>
> Signed-off-by: Wenxuan Wu <wenxuanx.wu at intel.com>
> ---
> app/test-pmd/cmdline.c | 152 +++++++++++++++++++++++++++++++++++++-
> app/test-pmd/config.c | 95 ++++++++++++++++++++++++
> app/test-pmd/parameters.c | 16 +++-
> app/test-pmd/testpmd.c | 11 ++-
> app/test-pmd/testpmd.h | 6 ++
> 5 files changed, 273 insertions(+), 7 deletions(-)
testpmd documentaion must be updated:
doc/guides/testpmd_app_ug/testpmd_funcs.rst
More information about the dev
mailing list