From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 39E23A00C2; Thu, 6 Oct 2022 12:12:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2EA1342BF7; Thu, 6 Oct 2022 12:12:08 +0200 (CEST) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by mails.dpdk.org (Postfix) with ESMTP id 8254842BF0 for ; Thu, 6 Oct 2022 12:12:06 +0200 (CEST) Received: from [192.168.38.17] (aros.oktetlabs.ru [192.168.38.17]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id 10FBB86; Thu, 6 Oct 2022 13:12:06 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 10FBB86 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1665051126; bh=UBqkS2/rMgRcpjTbZlAkiVD1zd4qO6bjEMxQDceu4ko=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=mDNnkc6ZobvvskD9+dZaUAhn+nYg1rf7xiVVatTRR4qh1ee9cTT7FSk9mmpf1JWJc jJXKRfRQygLf1OZgv6nCYnSyfZu9A2lTxCSyViy+UcqN0KwZTiMIuKp8QbqSrosbwf +bh6YJmzEP7+ejneFvkZdXbFxe0v2egnmXcLk9zc= Message-ID: <7886ab5d-dca5-d5fa-7d45-669a228e35ff@oktetlabs.ru> Date: Thu, 6 Oct 2022 13:12:05 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v8 3/4] app/testpmd: add rxhdrs commands and parameters Content-Language: en-US To: Yuan Wang , dev@dpdk.org, Aman Singh , Yuying Zhang Cc: thomas@monjalon.net, ferruh.yigit@xilinx.com, mdr@ashroe.eu, xiaoyun.li@intel.com, qi.z.zhang@intel.com, qiming.yang@intel.com, jerinjacobk@gmail.com, viacheslavo@nvidia.com, stephen@networkplumber.org, xuan.ding@intel.com, hpothula@marvell.com, yaqi.tang@intel.com, Wenxuan Wu References: <20220812181552.2908067-1-yuanx.wang@intel.com> <20221005231836.215112-1-yuanx.wang@intel.com> <20221005231836.215112-4-yuanx.wang@intel.com> From: Andrew Rybchenko Organization: OKTET Labs In-Reply-To: <20221005231836.215112-4-yuanx.wang@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 > Signed-off-by: Xuan Ding > Signed-off-by: Wenxuan Wu > --- > 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