Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/120762/?format=api
http://patches.dpdk.org/api/patches/120762/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/20221212081312.1103406-3-yaqi.tang@intel.com/", "project": { "id": 3, "url": "http://patches.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<20221212081312.1103406-3-yaqi.tang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20221212081312.1103406-3-yaqi.tang@intel.com", "date": "2022-12-12T08:13:11", "name": "[V2,2/3] test_plans/ice_buffer_split: ice PF enable buffer split", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "6321fd13547e605820c5d1adeaa880b502360789", "submitter": { "id": 2357, "url": "http://patches.dpdk.org/api/people/2357/?format=api", "name": "Yaqi Tang", "email": "yaqi.tang@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dts/patch/20221212081312.1103406-3-yaqi.tang@intel.com/mbox/", "series": [ { "id": 26082, "url": "http://patches.dpdk.org/api/series/26082/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=26082", "date": "2022-12-12T08:13:10", "name": "ice PF enable buffer split", "version": 2, "mbox": "http://patches.dpdk.org/series/26082/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/120762/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/120762/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dts-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 862DAA034C;\n\tMon, 12 Dec 2022 09:13:25 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6BF264021D;\n\tMon, 12 Dec 2022 09:13:25 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 947FE40151\n for <dts@dpdk.org>; Mon, 12 Dec 2022 09:13:23 +0100 (CET)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Dec 2022 00:13:22 -0800", "from dpdk-yaqi.sh.intel.com ([10.67.119.116])\n by fmsmga004.fm.intel.com with ESMTP; 12 Dec 2022 00:13:21 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1670832803; x=1702368803;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=zS5dToZGvKnqP3lSJHWTcKiCJTQan/gytQeI2tYZ+eE=;\n b=nqAGCfNlvouapTAct0YFS2v0HmHLNx8wDY4qNT6/N4Da8GpPj0Nc6IUV\n IpIVH3z9/mefvhd4GjUCPrT9CKYDscUq9n8sipbYt1casgu/pApTCmCmu\n BflI1WlOybUITrXIMR2N7Rnhjj/7C+BnGS/mDdwbrzGljhahBpfi8nHz9\n FiVLigV+HCtks5zkxoHyKvTcTEBhkGcJKkDM721UhbCqfknDz5hAYxgFF\n B3Qwmk3TZrz3N7feMqYTOUGNmz4bCCsGvcSoOD512iXrd2a68AfbOHxW5\n M+hOomPbTQJ8O46kbtWsXII6ukAcNy40PWkcOWnDnf97JHj7wwFfGiBUc A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10558\"; a=\"319651562\"", "E=Sophos;i=\"5.96,237,1665471600\"; d=\"scan'208\";a=\"319651562\"", "E=McAfee;i=\"6500,9779,10558\"; a=\"716708170\"", "E=Sophos;i=\"5.96,237,1665471600\"; d=\"scan'208\";a=\"716708170\"" ], "X-ExtLoop1": "1", "From": "Yaqi Tang <yaqi.tang@intel.com>", "To": "dts@dpdk.org", "Cc": "Yaqi Tang <yaqi.tang@intel.com>", "Subject": "[dts][PATCH V2 2/3] test_plans/ice_buffer_split: ice PF enable buffer\n split", "Date": "Mon, 12 Dec 2022 08:13:11 +0000", "Message-Id": "<20221212081312.1103406-3-yaqi.tang@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20221212081312.1103406-1-yaqi.tang@intel.com>", "References": "<20221212081312.1103406-1-yaqi.tang@intel.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org" }, "content": "Packets received in ice scalar path can be devided into two mempools with expected hdr and payload length/content specified by protocol type.\n\nSigned-off-by: Yaqi Tang <yaqi.tang@intel.com>\n---\n test_plans/ice_buffer_split_test_plan.rst | 1279 +++++++++++++++++++++\n 1 file changed, 1279 insertions(+)\n create mode 100644 test_plans/ice_buffer_split_test_plan.rst", "diff": "diff --git a/test_plans/ice_buffer_split_test_plan.rst b/test_plans/ice_buffer_split_test_plan.rst\nnew file mode 100644\nindex 00000000..2d29cca7\n--- /dev/null\n+++ b/test_plans/ice_buffer_split_test_plan.rst\n@@ -0,0 +1,1279 @@\n+.. SPDX-License-Identifier: BSD-3-Clause\n+ Copyright(c) 2022 Intel Corporation\n+\n+==========================\n+ICE PF Enable Buffer Split\n+==========================\n+\n+Description\n+===========\n+Protocol based buffer split consists of splitting a received packet into two separate regions based on the packet content. \n+It is useful in some scenarios, such as GPU acceleration. The splitting will help to enable true zero copy and hence \n+improve the performance significantly.\n+\n+It supports protocol split based on current buffer split. When Rx queue is \n+configured with RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT offload and corresponding protocol, \n+packets received will be directly split into two different mempools with expected hdr and payload length/content.\n+\n+For validation, we will focus on:\n+1. Configuration of protocol based buffer split is applied.\n+Setup buffer split:\n+Per port: testpmd>port config 0 rx_offload buffer_split on\n+Per queue: testpmd>port 0 rxq 0 rx_offload buffer_split on\n+\n+Set the protocol type of buffer split:\n+testpmd>set rxhdrs eth|ipv4|ipv6|ipv4-tcp|ipv6-tcp|ipv4-udp|ipv6-udp|\n+ ipv4-sctp|ipv6-sctp|grenat|inner-eth|inner-ipv4|inner-ipv6|\n+ inner-ipv4-tcp|inner-ipv6-tcp|inner-ipv4-udp|inner-ipv6-udp|\n+ inner-ipv4-sctp|inner-ipv6-sctp\n+\n+2. Packets received in ice scalar path(--force-max-simd-bitwidth=64) can be devided into \n+ two mempools with expected hdr and payload length/content specified by protocol type.\n+\n+.. note::\n+\n+ Currently, it supports 6 kinds segmentation of buffer split:\n+ * Outer mac: set rxhdrs eth\n+ * Inner mac: set rxhdrs inner-eth\n+ * Inner l3: set rxhdrs ipv4|ipv6|inner-ipv4|inner-ipv6\n+ * Inner l4: set rxhdrs ipv4-udp|ipv4-tcp|ipv6-udp|ipv6-tcp|inner-ipv4-udp|inner-ipv4-tcp|inner-ipv6-udp|inner-ipv6-tcp\n+ * Inner sctp: set rxhdrs ipv4-sctp|ipv6-sctp|inner-ipv4-sctp|inner-ipv6-sctp\n+ * Tunnel: set rxhdrs grenat\n+\n+Prerequisites\n+=============\n+\n+Topology\n+--------\n+DUT port 0 <----> Tester port 0\n+\n+Hardware\n+--------\n+Supported NICs: Intel® Ethernet 800 Series E810-XXVDA4/E810-CQ\n+\n+Software\n+--------\n+dpdk: http://dpdk.org/git/dpdk\n+runtime command: https://doc.dpdk.org/guides/testpmd_app_ug/testpmd_funcs.html\n+\n+General Set Up\n+--------------\n+1. Compile DPDK with '-Dc_args='-DRTE_ETHDEV_DEBUG_RX=1' to dump segment data::\n+\n+ # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dc_args='-DRTE_ETHDEV_DEBUG_RX=1' --default-library=static <dpdk build dir>\n+ # ninja -C <dpdk build dir> -j 110\n+\n+2. Get the pci device id and interface of DUT and tester.\n+ For example, 0000:3b:00.0 and 0000:3b:00.1 is pci device id,\n+ ens785f0 and ens785f1 is interface::\n+\n+ <dpdk dir># ./usertools/dpdk-devbind.py -s\n+\n+ 0000:3b:00.0 'Device 159b' if=ens785f0 drv=ice unused=vfio-pci\n+ 0000:3b:00.1 'Device 159b' if=ens785f1 drv=ice unused=vfio-pci\n+\n+3. Bind the DUT port to dpdk::\n+\n+ <dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci <DUT port pci device id> \n+\n+Test Case\n+=========\n+The test cases verify the buffer split of 6 packets:\n+* MAC_IPV4_UDP_PAY\n+* MAC_IPV4_IPV4_UDP_PAY\n+* MAC_IPV4_UDP_VXLAN_MAC_IPV4_UDP_PAY\n+* MAC_IPV4_UDP_VXLAN_IPV4_UDP_PAY\n+* MAC_IPV4_GRE_MAC_IPV4_UDP_PAY \n+* MAC_IPV4_GRE_IPV4_UDP_PAY\n+\n+Common Steps\n+------------\n+1.port stop all\n+2.port config 0 rx_offload buffer_split on \n+3.show port 0 rx_offload configuration\n+4.port config 0 udp_tunnel_port add vxlan 4789\n+5.set rxhdrs eth\n+6.show config rxhdrs\n+7.port start all\n+8.start\n+\n+Test Case 1: PORT_BUFFER_SPLIT_OUTER_MAC\n+----------------------------------------\n+Launch two ports testpmd, configure port 0 buffer split on outer mac, send matched packets to port 0 and check the received packets\n+can be devided into two mempools with expected hdr and payload length/content by the outer mac.\n+\n+Test Steps\n+~~~~~~~~~~\n+1. Launch two ports testpmd::\n+ \n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 -a 3b:00.1 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 \n+\n+2. Execute common steps to configure port 0 buffer split on outer mac.\n+\n+3. Send matched packets to port 0.\n+ \n+ Send MAC_IPV4_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=14 and pay_len=50.\n+ \n+ Send MAC_IPV4_IPV6_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/IPv6()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=14 and pay_len=90.\n+\n+ Send MAC_IPV4_UDP_VXLAN_MAC_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with har_len=14 and pay_len=80.\n+ \n+ Send MAC_IPV6_UDP_VXLAN_IPV6_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/UDP(sport=200, dport=4790)/VXLAN()/IPv6()/(\"Y\"*30)], iface=\"ens260f0\") \n+ \n+ Check the received packets can be devided into two mempools with hdr_len=14 and pay_len=126.\n+ \n+ Send MAC_IPV4_GRE_MAC_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=14 and pay_len=68.\n+\n+ Send MAC_IPV4_GRE_IPV6_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/IPv6()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=14 and pay_len=94.\n+\n+4. Send matched packets to port 1::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/IPv6()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/UDP(sport=200, dport=4790)/VXLAN()/IPv6()/(\"Y\"*30)], iface=\"ens260f1\") \n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/IPv6()/(\"Y\"*30)], iface=\"ens260f1\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+Test Case 2: PORT_BUFFER_SPLIT_INNER_MAC\n+----------------------------------------\n+Launch two ports testpmd, configure port 0 buffer split on inner mac, send matched packets to port 0 and check the received packets\n+can be devided into two mempools with expected hdr and payload length/content by the inner mac.\n+\n+Test Steps\n+~~~~~~~~~~\n+1. Launch two ports testpmd::\n+ \n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 -a 3b:00.1 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 \n+\n+2. Modify common step 5 to::\n+ \n+ set rxhdrs inner-eth\n+\n+ Execute common steps to configure port 0 buffer split on inner mac.\n+\n+3. Send matched packets to port 0.\n+\n+ Send MAC_IPV4_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=14 and pay_len=50.\n+ \n+ Send MAC_IPV4_IPV6_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/IPv6()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=14 and pay_len=90.\n+\n+ Send MAC_IPV4_UDP_VXLAN_MAC_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=64 and pay_len=30.\n+ \n+ Send MAC_IPV6_UDP_VXLAN_IPV6_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/UDP(sport=200, dport=4790)/VXLAN()/IPv6()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=14 and pay_len=126.\n+\n+ Send MAC_IPV4_GRE_MAC_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=52 and pay_len=30.\n+\n+ Send MAC_IPV6_GRE_IPV6_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/GRE()/IPv6()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=14 and pay_len=114.\n+\n+4. Send matched packets to port 1::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/IPv6()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/UDP(sport=200, dport=4790)/VXLAN()/IPv6()/(\"Y\"*30)], iface=\"ens260f1\") \n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/IPv6()/(\"Y\"*30)], iface=\"ens260f1\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+Test Case 3: PORT_BUFFER_SPLIT_INNER_L3\n+---------------------------------------\n+Launch two ports testpmd, configure port 0 buffer split on inner l3, send matched packets to port 0 and check the received packets\n+can be devided into two mempools with expected hdr and payload length/content by the inner l3.\n+Whether configure buffer split on ipv4 or ipv6, packets are split at inner ipv4 or inner ipv6.\n+\n+Subcase 1: buffer split ipv4\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+Test Steps\n+~~~~~~~~~~\n+1. Launch two ports testpmd::\n+ \n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 -a 3b:00.1 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 \n+\n+2. Modify common step 5 to::\n+ \n+ set rxhdrs ipv4\n+\n+ Execute common steps to configure port 0 buffer split on inner l3.\n+\n+3. Send matched packets to port 0.\n+ \n+ Send MAC_IPV4_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=34 and pay_len=30.\n+\n+ Send MAC_IPV6_IPV4_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/IP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=74 and pay_len=30.\n+\n+ Send MAC_IPV4_UDP_VXLAN_MAC_IPV6_PAY packet::\n+ \n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IPv6()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=104 and pay_len=30.\n+\n+ Send MAC_IPV6_UDP_VXLAN_IPV4_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/UDP(sport=200, dport=4790)/VXLAN()/IP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=90 and pay_len=30.\n+\n+ Send MAC_IPV4_GRE_MAC_IPV6_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/IPv6()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=92 and pay_len=30.\n+\n+ Send MAC_IPV6_GRE_IPV4_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/GRE()/IP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=78 and pay_len=30.\n+\n+4. Send matched packets to port 1::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/IP()/(\"Y\"*30)], iface=\"ens260f1\") \n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IPv6()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/UDP(sport=200, dport=4790)/VXLAN()/IP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/Ether()/IPv6()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/GRE()/IP()/(\"Y\"*30)], iface=\"ens260f1\") \n+ \n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+Subcase 2: buffer split ipv6\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs ipv6\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner l3.\n+\n+Subcase 3: buffer split inner-ipv4\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs inner-ipv4\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner l3.\n+\n+Subcase 4: buffer split inner-ipv6\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs inner-ipv6\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner l3.\n+\n+Test Case 4: PORT_BUFFER_SPLIT_INNER_L4\n+---------------------------------------\n+Launch two ports testpmd, configure port 0 buffer split on inner udp/tcp, send matched packets to port 0 and check the received packets\n+can be devided into two mempools with expected hdr and payload length/content by the inner udp/tcp. \n+Whether configure buffer split on udp or tcp, packets are split at inner udp or inner tcp.\n+\n+Subcase 1: buffer split ipv4-udp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+Test Steps\n+~~~~~~~~~~\n+1. Launch two ports testpmd::\n+ \n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 -a 3b:00.1 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 \n+\n+2. Modify common step 5 to::\n+ \n+ set rxhdrs ipv4-udp\n+\n+ Execute common steps to configure port 0 buffer split on inner udp/tcp.\n+\n+3. Send matched packets to port 0.\n+ \n+ #UDP packets\n+ Send MAC_IPV4_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=42 and pay_len=30.\n+ \n+ Send MAC_IPV4_IPV6_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/IPv6()/UDP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=82 and pay_len=30.\n+\n+ Send MAC_IPV4_UDP_VXLAN_MAC_IPV4_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP()/UDP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=92 and pay_len=30.\n+\n+ Send MAC_IPV6_UDP_VXLAN_IPV6_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/UDP(sport=200, dport=4790)/VXLAN()/IPv6()/UDP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=118 and pay_len=30. \n+\n+ Send MAC_IPV6_GRE_MAC_IPV4_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/IP()/UDP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=100 and pay_len=30.\n+\n+ Send MAC_IPV4_GRE_IPV6_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/IPv6()/UDP()/(\"Y\"*30)], iface=\"ens260f0\") \n+\n+ Check the received packets can be devided into two mempools with hdr_len=86 and pay_len=30.\n+\n+ #TCP packets\n+ Send MAC_IPV6_TCP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/TCP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=74 and pay_len=30. \n+\n+ Send MAC_IPV6_IPV4_TCP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/IP()/TCP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=94 and pay_len=30.\n+ \n+ Send MAC_IPV6_UDP_VXLAN_MAC_IPV6_TCP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IPv6()/TCP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=144 and pay_len=30.\n+\n+ Send MAC_IPV4_UDP_VXLAN_IPV4_TCP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP()/TCP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=90 and pay_len=30. \n+\n+ Send MAC_IPV4_GRE_MAC_IPV6_TCP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/IPv6()/TCP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=112 and pay_len=30.\n+\n+ Send MAC_IPV6_GRE_IPV4_TCP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/GRE()/IP()/TCP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=98 and pay_len=30.\n+\n+4. Send mismatched packet to port 0::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/IP()/SCTP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+5. Send matched packets to port 1::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/IPv6()/UDP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP()/UDP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/UDP(sport=200, dport=4790)/VXLAN()/IPv6()/UDP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/IP()/UDP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/IPv6()/UDP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ \n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/TCP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/IP()/TCP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IPv6()/TCP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP()/TCP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/IPv6()/TCP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/GRE()/IP()/TCP()/(\"Y\"*30)], iface=\"ens260f1\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+Subcase 2: buffer split ipv6-udp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs ipv6-udp\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner udp/tcp.\n+\n+Subcase 3: buffer split ipv4-tcp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs ipv4-tcp\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner udp/tcp.\n+\n+Subcase 4: buffer split ipv6-tcp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs ipv6-tcp\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner udp/tcp.\n+\n+Subcase 5: buffer split inner-ipv4-udp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs inner-ipv4-udp\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner udp/tcp.\n+\n+Subcase 6: buffer split inner-ipv6-udp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs inner-ipv6-udp\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner udp/tcp.\n+\n+Subcase 7: buffer split inner-ipv4-tcp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs inner-ipv4-tcp\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner udp/tcp.\n+\n+Subcase 8: buffer split inner-ipv6-tcp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs inner-ipv6-tcp\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner udp/tcp.\n+\n+Test Case 5: PORT_BUFFER_SPLIT_INNER_SCTP\n+-----------------------------------------\n+Launch two ports testpmd, configure port 0 buffer split on inner sctp, send matched packets to port 0 and check the received packets\n+can be devided into two mempools with expected hdr and payload length/content by the inner sctp.\n+\n+Subcase 1: buffer split ipv4-sctp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+Test Steps\n+~~~~~~~~~~\n+1. Launch two ports testpmd::\n+ \n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 -a 3b:00.1 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 \n+\n+2. Modify common step 5 to::\n+ \n+ set rxhdrs ipv4-sctp\n+\n+ Execute common steps to configure port 0 buffer split on inner sctp.\n+\n+3. Send matched packets to port 0.\n+\n+ Send MAC_IPV4_SCTP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/SCTP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=46 and pay_len=30.\n+ \n+ Send MAC_IPV4_IPV6_SCTP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/IPv6()/SCTP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=86 and pay_len=30.\n+ \n+ Send MAC_IPV4_UDP_VXLAN_MAC_IPV4_SCTP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP()/SCTP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=96 and pay_len=30.\n+\n+ Send MAC_IPV6_UDP_VXLAN_IPV6_SCTP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/UDP(sport=200, dport=4790)/VXLAN()/IPv6()/SCTP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=122 and pay_len=30.\n+\n+ Send MAC_IPV6_GRE_MAC_IPV4_SCTP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/IP()/SCTP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=104 and pay_len=30.\n+\n+ Send MAC_IPV4_GRE_IPV6_SCTP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/IPv6()/SCTP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=90 and pay_len=30.\n+ \n+4. Send mismatched packet to port 0::\n+ \n+ Send MAC_IPV4_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can't be devided into two mempools with hdr_len=0 and pay_len=64.\n+ \n+ Send MAC_IPV4_GRE_MAC_IPV4_UDP_PAY packet::\n+ \n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/IP()/UDP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can't be devided into two mempools with hdr_len=0 and pay_len=110.\n+\n+ Send MAC_IPV4_GRE_MAC_IPV4_TCP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/IP()/TCP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can't be devided into two mempools with hdr_len=0 and pay_len=122.\n+\n+5. Send matched packets to port 1::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/SCTP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/IPv6()/SCTP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP()/SCTP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/UDP(sport=200, dport=4790)/VXLAN()/IPv6()/SCTP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/IP()/SCTP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/IPv6()/SCTP()/(\"Y\"*30)], iface=\"ens260f1\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+Subcase 2: buffer split ipv6-sctp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs ipv6-sctp\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner sctp.\n+\n+Subcase 3: buffer split inner-ipv4-sctp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs inner-ipv4-sctp\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner sctp.\n+\n+Subcase 4: buffer split inner-ipv6-sctp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs inner-ipv6-sctp\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner sctp.\n+\n+Test Case 6: PORT_BUFFER_SPLIT_TUNNEL\n+-------------------------------------\n+Launch two ports testpmd, configure port 0 buffer split on tunnel, send matched packets to port 0 and check the received packets\n+can be devided into two mempools with expected hdr and payload length/content by the tunnel.\n+\n+Test Steps\n+~~~~~~~~~~\n+1. Launch two ports testpmd::\n+ \n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 -a 3b:00.1 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 \n+\n+2. Modify common step 5 to::\n+ \n+ set rxhdrs grenat\n+\n+ Execute common steps to configure port 0 buffer split on tunnel.\n+\n+3. Send matched packets to port 0.\n+ \n+ Send MAC_IPV4_IPV4_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/IP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=34 and pay_len=50.\n+ \n+ Send MAC_IPV6_IPV6_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/IPv6()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=54 and pay_len=70.\n+ \n+ Send MAC_IPV4_UDP_VXLAN_MAC_IPV4_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP()/UDP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=50 and pay_len=72.\n+\n+ Send MAC_IPV6_UDP_VXLAN_IPV6_TCP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/UDP(sport=200, dport=4790)/VXLAN()/IPv6()/TCP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=70 and pay_len=90.\n+\n+ Send MAC_IPV4_GRE_MAC_IPV6_SCTP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/IPv6()/SCTP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=38 and pay_len=96.\n+\n+ Send MAC_IPV6_GRE_IPV4_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/GRE()/IP()/UDP()/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=58 and pay_len=58.\n+\n+4. Send mismatched packet to port 0::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can't be devided into two mempools with hdr_len=0 and pay_len=72.\n+\n+5. Send matched packets to port 1::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/IP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/IPv6()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP()/UDP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/UDP(sport=200, dport=4790)/VXLAN()/IPv6()/TCP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/GRE()/Ether(dst=\"00:11:22:33:44:66\")/IPv6()/SCTP()/(\"Y\"*30)], iface=\"ens260f1\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6()/GRE()/IP()/UDP()/(\"Y\"*30)], iface=\"ens260f1\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+.. note::\n+\n+ Test Case 7~14 are queue buffer split cases. Verify the configuration of buffer split on single queue or queue group is effective. \n+ It will not affect creating, matching and destroying of fdir rule. \n+\n+Test Case 7: QUEUE_BUFFER_SPLIT_OUTER_MAC\n+-----------------------------------------\n+Launch one port with multi queues testpmd, configure queue buffer split on outer mac, send matched packets and check the received packets\n+can be devided into two mempools with expected hdr and payload length/content by the outer mac.\n+\n+Test Steps\n+~~~~~~~~~~\n+1. Launch one port with multi queues testpmd::\n+\n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 --txq=8 --rxq=8\n+\n+2. Modify common step 2 to::\n+ \n+ port 0 rxq 1 rx_offload buffer_split on\n+\n+ Execute common steps to configure queue buffer split on outer mac.\n+\n+3. Create a fdir rule::\n+\n+ flow create 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / end actions queue index 1 / mark / end\n+\n+4. Send matched packets.\n+\n+ Send MAC_IPV4_UDP_VXLAN_MAC_IPV4_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\")/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=14 and pay_len=100.\n+\n+ Send MAC_IPV4_UDP_VXLAN_IPV4_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\")/(\"Y\"*30)], iface=\"ens260f0\") \n+\n+ Check the received packets can be devided into two mempools with hdr_len=14 and pay_len=86.\n+\n+5. Send mismatched packets::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.2\")/(\"Y\"*30)], iface=\"ens260f0\") \n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP(src=\"192.168.0.1\",dst=\"192.168.0.4\")/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+6. Destroy the rule::\n+\n+ flow destroy 0 rule 0 \n+\n+Test Case 8: QUEUE_BUFFER_SPLIT_INNER_MAC\n+-----------------------------------------\n+Launch one port with multi queues testpmd, configure queue buffer split on inner mac, send matched packets and check the received packets\n+can be devided into two mempools with expected hdr and payload length/content by the inner mac.\n+\n+Test Steps\n+~~~~~~~~~~\n+1. Launch one port with multi queues testpmd::\n+\n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 --txq=8 --rxq=8\n+\n+2. Modify common step 2 to::\n+ \n+ port 0 rxq 2 rx_offload buffer_split on\n+ port 0 rxq 3 rx_offload buffer_split on \n+\n+ Modify common step 5 to::\n+ \n+ set rxhdrs inner-eth\n+\n+ Execute common steps to configure queue buffer split on inner mac.\n+\n+3. Create a fdir rule::\n+\n+ flow create 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / end actions rss queues 2 3 end / mark / end\n+\n+4. Send matched packets.\n+\n+ Send MAC_IPV4_UDP_VXLAN_MAC_IPV4_UDP_PAY packet::\n+ \n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\")/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=64 and pay_len=50.\n+\n+ Send MAC_IPV4_UDP_VXLAN_IPV4_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\")/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=14 and pay_len=86.\n+\n+5. Send mismatched packets::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.2\")/(\"Y\"*30)], iface=\"ens260f0\") \n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP(src=\"192.168.0.1\",dst=\"192.168.0.4\")/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+6. Destroy the rule::\n+\n+ flow destroy 0 rule 0 \n+\n+Test Case 9: QUEUE_BUFFER_SPLIT_INNER_IPV4\n+------------------------------------------\n+Launch one port with multi queues testpmd, configure queue buffer split on inner ipv4, send matched packets and check the received packets\n+can be devided into two mempools with expected hdr and payload length/content by the inner ipv4.\n+\n+Subcase 1: buffer split ipv4\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+Test Steps\n+~~~~~~~~~~\n+1. Launch one port with multi queues testpmd::\n+\n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 --txq=8 --rxq=8\n+\n+2. Modify common step 2 to::\n+ \n+ port 0 rxq 2 rx_offload buffer_split on\n+\n+ Modify common step 5 to::\n+ \n+ set rxhdrs ipv4\n+\n+ Execute common steps to configure queue buffer split on inner ipv4.\n+\n+3. Create a fdir rule::\n+\n+ flow create 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / end actions queue index 2 / mark / end\n+\n+4. Send matched packets.\n+\n+ Send MAC_IPV4_UDP_VXLAN_MAC_IPV4_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\")/(\"Y\"*30)], iface=\"ens260f0\") \n+\n+ Check the received packets can be devided into two mempools with hdr_len=84 and pay_len=30.\n+\n+ Send MAC_IPV4_UDP_VXLAN_IPV4_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\")/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=70 and pay_len=30. \n+\n+5. Send mismatched packets::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.2\")/(\"Y\"*30)], iface=\"ens260f0\") \n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP(src=\"192.168.0.1\",dst=\"192.168.0.4\")/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+6. Destroy the rule::\n+\n+ flow destroy 0 rule 0 \n+\n+Subcase 2: buffer split inner-ipv4\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs inner-ipv4\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner ipv4.\n+\n+Test Case 10: QUEUE_BUFFER_SPLIT_INNER_IPV6\n+-------------------------------------------\n+Launch one port with multi queues testpmd, configure queue buffer split on inner ipv6, send matched packets and check the received packets\n+can be devided into two mempools with expected hdr and payload length/content by the inner ipv6.\n+\n+Subcase 1: buffer split ipv6\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+Test Steps\n+~~~~~~~~~~\n+1. Launch one port with multi queues testpmd::\n+\n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 --txq=8 --rxq=8\n+\n+2. Modify common step 2 to::\n+ \n+ port 0 rxq 4 rx_offload buffer_split on\n+ port 0 rxq 5 rx_offload buffer_split on \n+\n+ Modify common step 5 to::\n+ \n+ set rxhdrs ipv6\n+\n+ Execute common steps to configure queue buffer split on inner ipv6.\n+\n+3. Create a fdir rule::\n+\n+ flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001::2 / end actions rss queues 4 5 end / mark / end\n+\n+4. Send matched packets.\n+\n+ Send MAC_IPV6_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::1\",dst=\"2001::2\")/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=54 and pay_len=30. \n+\n+5. Send mismatched packets::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::8\",dst=\"2001::2\")/(\"Y\"*30)], iface=\"ens260f0\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::1\",dst=\"2001::9\")/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+6. Destroy the rule::\n+\n+ flow destroy 0 rule 0 \n+\n+Subcase 2: buffer split inner-ipv6\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs inner-ipv6\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner ipv6.\n+\n+Test Case 11: QUEUE_BUFFER_SPLIT_INNER_UDP\n+------------------------------------------\n+Launch one port with multi queues testpmd, configure queue buffer split on inner udp, send matched packets and check the received packets\n+can be devided into two mempools with expected hdr and payload length/content by the inner udp.\n+\n+Subcase 1: buffer split ipv4-udp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+Test Steps\n+~~~~~~~~~~\n+1. Launch one port with multi queues testpmd::\n+\n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 --txq=8 --rxq=8\n+\n+2. Modify common step 2 to::\n+ \n+ port 0 rxq 3 rx_offload buffer_split on\n+\n+ Modify common step 5 to::\n+ \n+ set rxhdrs ipv4-udp\n+\n+ Execute common steps to configure queue buffer split on inner udp.\n+\n+3. Create a fdir rule::\n+\n+ flow create 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / udp dst is 23 / end actions queue index 3 / mark / end\n+\n+4. Send matched packets.\n+\n+ Send MAC_IPV4_UDP_VXLAN_MAC_IPV4_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.1\", dst=\"192.168.0.2\")/UDP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\") \n+\n+ Check the received packets can be devided into two mempools with hdr_len=92 and pay_len=30. \n+\n+ Send MAC_IPV4_UDP_VXLAN_IPV4_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP(src=\"192.168.0.1\", dst=\"192.168.0.2\")/UDP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=78 and pay_len=30. \n+\n+5. Send mismatched packets::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.3\", dst=\"192.168.0.2\")/UDP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP(src=\"192.168.0.1\", dst=\"192.168.0.2\")/UDP(dport=24)/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+6. Destroy the rule::\n+\n+ flow destroy 0 rule 0 \n+\n+Subcase 2: buffer split ipv6-udp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+Test Steps\n+~~~~~~~~~~\n+1. Launch one port multi queues testpmd::\n+\n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 --txq=8 --rxq=8\n+\n+2. Modify common step 2 to::\n+ \n+ port 0 rxq 3 rx_offload buffer_split on\n+\n+ Modify common step 5 to::\n+ \n+ set rxhdrs ipv6-udp\n+\n+ Execute common steps to configure queue buffer split on inner udp.\n+\n+3. Create a fdir rule::\n+\n+ flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001::2 / udp dst is 23 / end actions queue index 3 / mark / end\n+\n+4. Send matched packets.\n+\n+ Send MAC_IPV6_UDP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::1\",dst=\"2001::2\")/UDP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=62 and pay_len=30. \n+\n+5. Send mismatched packets::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::8\",dst=\"2001::2\")/UDP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::1\",dst=\"2001::2\")/UDP(dport=24)/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can't be devided into two mempools.(hdr_len=0)\n+\n+6. Destroy the rule::\n+\n+ flow destroy 0 rule 0 \n+\n+Subcase 3: buffer split inner-ipv4-udp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs inner-ipv4-udp\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner udp.\n+\n+Subcase 4: buffer split inner-ipv6-udp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 2 test step 2 to::\n+\n+ set rxhdrs inner-ipv6-udp\n+\n+2. Execute subcase 2 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner udp.\n+\n+Test Case 12: QUEUE_BUFFER_SPLIT_INNER_TCP\n+------------------------------------------\n+Launch one port with multi queues testpmd, configure queue buffer split on inner tcp, send matched packets and check the received packets\n+can be devided into two mempools with expected hdr and payload length/content by the inner tcp.\n+\n+Subcase 1: buffer split ipv4-tcp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+Test Steps\n+~~~~~~~~~~\n+1. Launch one port with multi queues testpmd::\n+\n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 --txq=8 --rxq=8\n+\n+2. Modify common step 2 to::\n+ \n+ port 0 rxq 2 rx_offload buffer_split on\n+ port 0 rxq 3 rx_offload buffer_split on \n+\n+ Modify common step 5 to::\n+ \n+ set rxhdrs ipv4-tcp\n+\n+ Execute common steps to configure queue buffer split on inner tcp.\n+\n+3. Create a fdir rule::\n+\n+ flow create 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / tcp dst is 23 / end actions rss queues 2 3 end / mark / end\n+\n+4. Send matched packets.\n+\n+ Send MAC_IPV4_UDP_VXLAN_MAC_IPV4_TCP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.1\", dst=\"192.168.0.2\")/TCP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=104 and pay_len=30. \n+\n+ Send MAC_IPV4_UDP_VXLAN_IPV4_TCP_PAY packet::\n+ \n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP(src=\"192.168.0.1\", dst=\"192.168.0.2\")/TCP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=90 and pay_len=30. \n+ \n+5. Send mismatched packets::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.3\", dst=\"192.168.0.2\")/TCP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP(src=\"192.168.0.1\", dst=\"192.168.0.2\")/TCP(dport=24)/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+6. Destroy the rule::\n+\n+ flow destroy 0 rule 0 \n+\n+Subcase 2: buffer split ipv6-tcp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+Test Steps\n+~~~~~~~~~~\n+1. Launch one port multi queues testpmd::\n+\n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 --txq=8 --rxq=8\n+\n+2. Modify common step 2 to::\n+ \n+ port 0 rxq 2 rx_offload buffer_split on\n+ port 0 rxq 3 rx_offload buffer_split on \n+\n+ Modify common step 5 to::\n+ \n+ set rxhdrs ipv6-tcp\n+\n+ Execute common steps to configure queue buffer split on inner udp.\n+\n+3. Create a fdir rule::\n+\n+ flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001::2 / tcp dst is 23 / end actions rss queues 2 3 end / mark / end\n+\n+4. Send matched packets.\n+\n+ Send MAC_IPV6_TCP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::1\",dst=\"2001::2\")/TCP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=74 and pay_len=30. \n+\n+5. Send mismatched packets::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::8\",dst=\"2001::2\")/TCP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::1\",dst=\"2001::2\")/TCP(dport=24)/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+6. Destroy the rule::\n+\n+ flow destroy 0 rule 0 \n+\n+Subcase 3: buffer split inner-ipv4-tcp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs inner-ipv4-tcp\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner tcp.\n+\n+Subcase 4: buffer split inner-ipv6-tcp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 2 test step 2 to::\n+\n+ set rxhdrs inner-ipv6-tcp\n+\n+2. Execute subcase 2 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner tcp.\n+\n+Test Case 13: QUEUE_BUFFER_SPLIT_INNER_SCTP\n+-------------------------------------------\n+Launch one port with multi queues testpmd, configure queue buffer split on inner sctp, send matched packets and check the received packets\n+can be devided into two mempools with expected hdr and payload length/content by the inner sctp.\n+\n+Subcase 1: buffer split ipv4-sctp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+Test Steps\n+~~~~~~~~~~\n+1. Launch one port multi queues testpmd::\n+\n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 --txq=8 --rxq=8\n+\n+2. Modify common step 2 to::\n+ \n+ port 0 rxq 5 rx_offload buffer_split on\n+\n+ Modify common step 5 to::\n+ \n+ set rxhdrs ipv4-sctp\n+\n+ Execute common steps to configure queue buffer split on inner sctp.\n+\n+3. Create a fdir rule::\n+\n+ flow create 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / sctp dst is 23 / end actions queue index 5 / mark / end\n+\n+4. Send matched packets.\n+\n+ Send MAC_IPV4_UDP_VXLAN_MAC_IPV4_SCTP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.1\", dst=\"192.168.0.2\")/SCTP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=96 and pay_len=30. \n+\n+ Send MAC_IPV4_UDP_VXLAN_IPV4_SCTP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP(src=\"192.168.0.1\", dst=\"192.168.0.2\")/SCTP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=82 and pay_len=30. \n+ \n+5. Send mismatched packets::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.3\", dst=\"192.168.0.2\")/SCTP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP(src=\"192.168.0.1\", dst=\"192.168.0.2\")/SCTP(dport=24)/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+6. Destroy the rule::\n+\n+ flow destroy 0 rule 0 \n+\n+Subcase 2: buffer split ipv6-sctp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+Test Steps\n+~~~~~~~~~~\n+1. Launch one port multi queues testpmd::\n+\n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 --txq=8 --rxq=8\n+\n+2. Modify common step 2 to::\n+ \n+ port 0 rxq 5 rx_offload buffer_split on\n+\n+ Modify common step 5 to::\n+ \n+ set rxhdrs ipv6-sctp\n+\n+ Execute common steps to configure queue buffer split on inner sctp.\n+\n+3. Create a fdir rule::\n+\n+ flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001::2 / sctp dst is 23 / end actions queue index 5 / mark / end\n+\n+4. Send matched packets.\n+\n+ Send MAC_IPV6_SCTP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::1\",dst=\"2001::2\")/SCTP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+ \n+ Check the received packets can be devided into two mempools with hdr_len=66 and pay_len=30. \n+ \n+5. Send mismatched packets::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::8\",dst=\"2001::2\")/SCTP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::1\",dst=\"2001::2\")/SCTP(dport=24)/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+6. Destroy the rule::\n+\n+ flow destroy 0 rule 0 \n+\n+Subcase 3: buffer split inner-ipv4-sctp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 1 test step 2 to::\n+\n+ set rxhdrs inner-ipv4-sctp\n+\n+2. Execute subcase 1 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner sctp.\n+\n+Subcase 4: buffer split inner-ipv6-sctp\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+1. Modify subcase 2 test step 2 to::\n+\n+ set rxhdrs inner-ipv6-sctp\n+\n+2. Execute subcase 2 test steps to check the received packets can be devided into two mempools with expected hdr and payload length/content by the inner sctp.\n+\n+Test Case 14: QUEUE_BUFFER_SPLIT_TUNNEL\n+---------------------------------------\n+Launch one port with multi queues testpmd, configure queue buffer split on tunnel, send matched packets and check the received packets\n+can be devided into two mempools with expected hdr and payload length/content by the tunnel.\n+\n+Test Steps\n+~~~~~~~~~~\n+1. Launch one port multi queues testpmd::\n+\n+ <dpdk build dir>/app/dpdk-testpmd <EAL options> -a 3b:00.0 --force-max-simd-bitwidth=64 -- -i --mbuf-size=2048,2048 --txq=8 --rxq=8\n+\n+2. Modify common step 2 to::\n+ \n+ port 0 rxq 4 rx_offload buffer_split on\n+ \n+ port 0 rxq 5 rx_offload buffer_split on\n+\n+ Modify common step 5 to::\n+ \n+ set rxhdrs grenat\n+\n+ Execute common steps to configure queue buffer split on inner udp.\n+\n+3. Create a fdir rule::\n+\n+ flow create 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / udp dst is 23 / end actions rss queues 4 5 end / mark / end\n+\n+4. Send matched packets.\n+\n+ Send MAC_IPV4_UDP_VXLAN_MAC_IPV4_SCTP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.0.1\", dst=\"192.168.0.2\")/UDP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=50 and pay_len=72. \n+\n+ Send MAC_IPV4_UDP_VXLAN_IPV4_SCTP_PAY packet::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP(src=\"192.168.0.1\", dst=\"192.168.0.2\")/UDP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can be devided into two mempools with hdr_len=50 and pay_len=58. \n+ \n+5. Send mismatched packets::\n+\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP()/VXLAN()/Ether(dst=\"00:11:22:33:44:66\")/IP(src=\"192.168.1.1\", dst=\"192.168.0.2\")/UDP(dport=23)/(\"Y\"*30)], iface=\"ens260f0\")\n+ sendp([Ether(dst=\"00:11:22:33:44:55\")/IP()/UDP(sport=200, dport=4790)/VXLAN()/IP(src=\"192.168.0.1\", dst=\"192.168.0.2\")/UDP(dport=24)/(\"Y\"*30)], iface=\"ens260f0\")\n+\n+ Check the received packets can't be devided into two mempools and hdr_len=0.\n+\n+6. Destroy the rule::\n+\n+ flow destroy 0 rule 0 \n+\n", "prefixes": [ "V2", "2/3" ] }{ "id": 120762, "url": "