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 <[email protected]> Signed-off-by: Xuan Ding <[email protected]> Signed-off-by: Wenxuan Wu <[email protected]> --- 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

