get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/88126/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 88126,
    "url": "http://patches.dpdk.org/api/patches/88126/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/1614150690-6268-1-git-send-email-hailinx.xu@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": "<1614150690-6268-1-git-send-email-hailinx.xu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/1614150690-6268-1-git-send-email-hailinx.xu@intel.com",
    "date": "2021-02-24T07:11:30",
    "name": "[v2] test_plans:add iavf_flexible_descriptor",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "255519d368f128a08b79d2ee47c576fae0834195",
    "submitter": {
        "id": 1704,
        "url": "http://patches.dpdk.org/api/people/1704/?format=api",
        "name": "hailinx",
        "email": "hailinx.xu@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/1614150690-6268-1-git-send-email-hailinx.xu@intel.com/mbox/",
    "series": [
        {
            "id": 15354,
            "url": "http://patches.dpdk.org/api/series/15354/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=15354",
            "date": "2021-02-24T07:11:30",
            "name": "[v2] test_plans:add iavf_flexible_descriptor",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/15354/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/88126/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/88126/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 2575DA034F;\n\tWed, 24 Feb 2021 08:23:17 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 105641607BC;\n\tWed, 24 Feb 2021 08:23:17 +0100 (CET)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id BBBCC1606DE\n for <dts@dpdk.org>; Wed, 24 Feb 2021 08:23:14 +0100 (CET)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 Feb 2021 23:23:13 -0800",
            "from unknown (HELO dpdk-huangzm-d.sh.intel.com) ([10.240.183.72])\n by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 Feb 2021 23:23:12 -0800"
        ],
        "IronPort-SDR": [
            "\n I2yOSJaPMaPExNfYgduncHfLhp9fiH9aRv1vxpCmbXtDBFulVFwzzIODoD4xNJFlV8F9aorHbw\n bsVkD52opKBA==",
            "\n S4cfJb+oKkAGFMVJb7wjoSgy94y94WuHtWd0s54UJOM+OPvosL+y/0Er9QaPhHgPGi8CC7TU85\n SmUlYFDsjEeA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9904\"; a=\"164934305\"",
            "E=Sophos;i=\"5.81,201,1610438400\"; d=\"scan'208\";a=\"164934305\"",
            "E=Sophos;i=\"5.81,201,1610438400\"; d=\"scan'208\";a=\"391452554\""
        ],
        "From": "Hailin Xu <hailinx.xu@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "xueqin.lin@intel.com,\n\tHailin Xu <hailinx.xu@intel.com>",
        "Date": "Wed, 24 Feb 2021 15:11:30 +0800",
        "Message-Id": "<1614150690-6268-1-git-send-email-hailinx.xu@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "Subject": "[dts] [PATCH v2] test_plans:add iavf_flexible_descriptor",
        "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",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "v1: add test plan: iavf_flexible_descriptor.\nv2: add test plan and Unified code style.\n\nSigned-off-by: Hailin Xu <hailinx.xu@intel.com>\n---\n .../iavf_flexible_descriptor_test_plan.rst    | 748 ++++++++++++++++++\n 1 file changed, 748 insertions(+)\n create mode 100644 test_plans/iavf_flexible_descriptor_test_plan.rst",
    "diff": "diff --git a/test_plans/iavf_flexible_descriptor_test_plan.rst b/test_plans/iavf_flexible_descriptor_test_plan.rst\nnew file mode 100644\nindex 00000000..b28764fe\n--- /dev/null\n+++ b/test_plans/iavf_flexible_descriptor_test_plan.rst\n@@ -0,0 +1,748 @@\n+.. Copyright (c) <2021> Intel Corporation\n+   All rights reserved\n+\n+   Redistribution and use in source and binary forms, with or without\n+   modification, are permitted provided that the following conditions\n+   are met:\n+\n+   - Redistributions of source code must retain the above copyright\n+     notice, this list of conditions and the following disclaimer.\n+\n+   - Redistributions in binary form must reproduce the above copyright\n+     notice, this list of conditions and the following disclaimer in\n+     the documentation and/or other materials provided with the\n+     distribution.\n+\n+   - Neither the name of Intel Corporation nor the names of its\n+     contributors may be used to endorse or promote products derived\n+     from this software without specific prior written permission.\n+\n+   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n+   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n+   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n+   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n+   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n+   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n+   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\n+   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n+   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\n+   OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+========================\n+Flexible RXd Test Suites\n+========================\n+\n+\n+Description\n+===========\n+\n+The test suite will cover the flexible RX descriptor on Intel E810\n+network interface card.\n+\n+Prerequisites\n+=============\n+\n+Copy correct ``ice.pkg`` into ``/usr/lib/firmware/intel/ice/ddp/``, \\\n+For the test cases, os/comms/wireless package is expected.\n+\n+Prepare test toplogy, in the test case, it requires\n+\n+- 1 Intel E810 interface\n+- 1 network interface for sending test packet,\n+  which could be connect to the E810 interface\n+- Directly connect the 2 interfaces\n+\n+Patch testpmd for dumping flexible fields from RXD::\n+\n+  diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build\n+  index 7e9c7bdd6..b75b90a9c 100644\n+  --- a/app/test-pmd/meson.build\n+  +++ b/app/test-pmd/meson.build\n+  @@ -49,6 +49,9 @@ endif\n+  if dpdk_conf.has('RTE_NET_I40E')\n+        deps += 'net_i40e'\n+   endif\n+  +if dpdk_conf.has('RTE_NET_ICE')\n+  +       deps += ['net_ice', 'net_iavf']\n+  +endif\n+   if dpdk_conf.has('RTE_NET_IXGBE')\n+          deps += 'net_ixgbe'\n+   endif\n+\n+\n+  diff --git a/app/test-pmd/util.c b/app/test-pmd/util.c\n+  index a9e431a8b..3447a9b43 100644\n+  --- a/app/test-pmd/util.c\n+  +++ b/app/test-pmd/util.c\n+  @@ -12,6 +12,7 @@\n+   #include <rte_vxlan.h>\n+   #include <rte_ethdev.h>\n+   #include <rte_flow.h>\n+  +#include <rte_pmd_iavf.h>\n+\n+   #include \"testpmd.h\"\n+\n+  @@ -151,6 +152,7 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[],\n+                            eth_type, (unsigned int) mb->pkt_len,\n+                            (int)mb->nb_segs);\n+                  ol_flags = mb->ol_flags;\n+  +                rte_pmd_ifd_dump_proto_xtr_metadata(mb);\n+                  if (ol_flags & PKT_RX_RSS_HASH) {\n+                          MKDUMPSTR(print_buf, buf_size, cur_len,\n+                                    \" - RSS hash=0x%x\",\n+\n+\n+Compile DPDK and testpmd::\n+\n+  CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib x86_64-native-linuxapp-gcc\n+  ninja -C x86_64-native-linuxapp-gcc -j 70\n+\n+Generate 1 VF on each PF and set mac address for each VF::\n+\n+  echo 1 > /sys/bus/pci/devices/0000:af:00.0/sriov_numvfs\n+  ip link set ens802f0 vf 0 mac 00:11:22:33:44:55\n+\n+Bind the vf interface to vfio-pci driver::\n+\n+  ./usertools/dpdk-devbind.py -b vfio-pci af:01.0\n+\n+\n+Test Case 01: Check single VLAN fields in RXD (802.1Q)\n+======================================================\n+\n+Launch testpmd by::\n+\n+  ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=vlan -- -i --rxq=4 --txq=4 --portmask=0x1 --nb-cores=2\n+\n+  testpmd>set verbose 1\n+  testpmd>set fwd io\n+  testpmd>start\n+\n+check RXDID value correct::\n+\n+   expected: RXDID[17]\n+\n+Please change the core setting (-l option) and port's PCI (-w option) \\\n+by your DUT environment\n+\n+Send a packet with VLAN tag from test network interface::\n+\n+  scapy #launch scapy in shell\n+\n+  #In scapy interactive UI\n+  p = Ether(src=\"68:05:ca:a3:1b:28\", dst=\"00:11:22:33:44:55\", type=0x9100)/Dot1Q(prio=1,vlan=23)/IP()/UDP()/DNS()\n+  sendp(p, iface='ens192f0', count=1)\n+\n+Please notice\n+\n+- Change ethernet source address with your test network interface's address\n+- Make sure the ethernet destination addres is NOT your real E810 interface's address\n+\n+Check the output in testpmd, **ctag=1:0:23** is expected, which is consistent with VLAN tag set in test packet::\n+\n+  testpmd> port 0/queue 28: received 1 packets\n+  src=68:05:CA:A3:1B:28 - dst=00:11:22:33:44:55 - type=0x8100 - length=60 - nb_segs=1 - RSS hash=0xf31f649c - RSS queue=0x1c - Protocol Extraction:[0x0000:0x2017],vlan,stag=0:0:0,ctag=1:0:23  - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_UDP  - sw ptype: L2_ETHER_VLAN L3_IPV4 L4_UDP  - l2_len=18 - l3_len=20 - l4_len=8 - Receive queue=0x1c\n+  ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN\n+\n+\n+\n+Test Case 02: Check single VLAN fields in RXD (802.1ad)\n+=======================================================\n+\n+Test steps are same to ``Test Case 01``, just change the launch command of testpmd, test packet and expected output\n+\n+Launch testpmd command::\n+\n+  ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=vlan -- -i --rxq=4 --txq=4 --portmask=0x1 --nb-cores=2\n+\n+check RXDID value correct::\n+\n+   expected: RXDID[17]\n+\n+Test packet::\n+\n+  p = Ether(src='68:05:ca:a3:1b:28', dst='00:11:22:33:44:55', type=0x88A8)/Dot1Q(prio=1,vlan=23)/IP()/UDP()/DNS()\n+\n+Expected output in testpmd::\n+\n+  stag=1:0:23\n+\n+\n+Test Case 03: Check double VLAN fields in RXD (802.1Q) only 1 VLAN tag\n+======================================================================\n+\n+Test steps are same to ``Test Case 01``, just change the launch command of testpmd, test packet and expected output\n+\n+Launch testpmd command::\n+\n+  ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=vlan -- -i --rxq=4 --txq=4 --portmask=0x1 --nb-cores=2\n+\n+check RXDID value correct::\n+\n+   expected: RXDID[17]\n+\n+Test packet::\n+\n+  p = Ether(src='68:05:ca:a3:1b:28', dst='00:11:22:33:44:55', type=0x9100)/Dot1Q(prio=1,vlan=23)/IP()/UDP()/DNS()\n+\n+Expected output in testpmd::\n+\n+  stag=1:0:23\n+\n+Test Case 04: Check double VLAN fields in RXD (802.1Q) 2 VLAN tags\n+==================================================================\n+\n+Test steps are same to ``Test Case 01``, just change the launch command of testpmd, test packet and expected output\n+\n+Launch testpmd command::\n+\n+  ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=vlan -- -i --rxq=4 --txq=4 --portmask=0x1 --nb-cores=2\n+\n+check RXDID value correct::\n+\n+   expected: RXDID[17]\n+\n+Test packet::\n+\n+  p = Ether(src='68:05:ca:a3:1b:28', dst='00:11:22:33:44:55', type=0x9100)/Dot1Q(prio=1,vlan=23)/Dot1Q(prio=4,vlan=56)/IP()/UDP()/DNS()\n+\n+Expected output in testpmd::\n+\n+  stag=1:0:23\n+  ctag=4:0:56\n+\n+\n+Test Case 05: Check double VLAN fields in RXD (802.1ad)\n+=======================================================\n+\n+Test steps are same to ``Test Case 01``, just change the launch command of testpmd, test packet and expected output\n+\n+Launch testpmd command::\n+\n+  ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=vlan -- -i --rxq=4 --txq=4 --portmask=0x1 --nb-cores=2\n+\n+check RXDID value correct::\n+\n+   expected: RXDID[17]\n+\n+Test packet::\n+\n+  p = Ether(src='68:05:ca:a3:1b:28', dst='00:11:22:33:44:55', type=0x88A8)/Dot1Q(prio=1,vlan=23)/Dot1Q(prio=4,vlan=56)/IP()/UDP()/DNS()\n+\n+Expected output in testpmd::\n+\n+  stag=1:0:23\n+  ctag=4:0:56\n+\n+\n+Test Case 06: Check IPv4 fields in RXD\n+======================================\n+\n+Test steps are same to ``Test Case 01``, just change the launch command of testpmd, test packet and expected output\n+\n+Launch testpmd command::\n+\n+  ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=ipv4 -- -i --rxq=4 --txq=4 --portmask=0x1 --nb-cores=2\n+\n+check RXDID value correct::\n+\n+   expected: RXDID[18]\n+\n+Test packet::\n+\n+  p = Ether(src='68:05:ca:a3:1b:28', dst='00:11:22:33:44:55')/IP(tos=23,ttl=98)/UDP()/Raw(load='XXXXXXXXXX')\n+\n+Expected output in testpmd::\n+\n+  ver=4\n+  hdrlen=5\n+  tos=23\n+  ttl=98\n+  proto=17\n+\n+\n+Test Case 07: Check IPv6 fields in RXD\n+=======================================================\n+\n+Test steps are same to ``Test Case 01``, just change the launch command of testpmd, test packet and expected output\n+\n+Launch testpmd command::\n+\n+  ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=ipv6 -- -i --rxq=4 --txq=4 --portmask=0x1 --nb-cores=2\n+\n+check RXDID value correct::\n+\n+   expected: RXDID[19]\n+\n+Test packet::\n+\n+  p = Ether(src='68:05:ca:a3:1b:28', dst='00:11:22:33:44:55')/IPv6(tc=12,hlim=34,fl=0x98765)/UDP()/Raw(load='XXXXXXXXXX')\n+\n+Expected output in testpmd::\n+\n+  ver=6\n+  tc=12\n+  flow_hi4=0x9\n+  nexthdr=17\n+  hoplimit=34\n+\n+\n+Test Case 08: Check IPv6 flow field in RXD\n+=======================================================\n+\n+Test steps are same to ``Test Case 01``, just change the launch command of testpmd, test packet and expected output\n+\n+Launch testpmd command::\n+\n+  ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=ipv6_flow -- -i --rxq=4 --txq=4 --portmask=0x1 --nb-cores=2\n+\n+check RXDID value correct::\n+\n+   expected: RXDID[20]\n+\n+Test packet::\n+\n+  p = Ether(src='68:05:ca:a3:1b:28', dst='00:11:22:33:44:55')/IPv6(tc=12,hlim=34,fl=0x98765)/UDP()/Raw(load='XXXXXXXXXX')\n+\n+Expected output in testpmd::\n+\n+  ver=6\n+  tc=12\n+  flow=0x98765\n+\n+\n+Test Case 09: Check TCP fields in IPv4 in RXD\n+=======================================================\n+\n+Test steps are same to ``Test Case 01``, just change the launch command of testpmd, test packet and expected output\n+\n+Launch testpmd command::\n+\n+  ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=tcp -- -i --rxq=4 --txq=4 --portmask=0x1 --nb-cores=2\n+\n+check RXDID value correct::\n+\n+   expected: RXDID[21]\n+\n+Test packet::\n+\n+  p = Ether(src='68:05:ca:a3:1b:28', dst='00:11:22:33:44:55')/IP()/TCP(flags='AS')/Raw(load='XXXXXXXXXX')\n+\n+Expected output in testpmd::\n+\n+  doff=5\n+  flags=AS\n+\n+\n+Test Case 10: Check TCP fields in IPv6 in RXD\n+=======================================================\n+\n+Test steps are same to ``Test Case 01``, just change the launch command of testpmd, test packet and expected output\n+\n+Launch testpmd command::\n+\n+  ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=tcp -- -i --rxq=4 --txq=4 --portmask=0x1 --nb-cores=2\n+\n+check RXDID value correct::\n+\n+   expected: RXDID[21]\n+\n+Test packet::\n+\n+  p = Ether(src='68:05:ca:a3:1b:28', dst='00:11:22:33:44:55')/IPv6()/TCP(flags='S')/Raw(load='XXXXXXXXXX')\n+\n+Expected output in testpmd::\n+\n+  doff=5\n+  flags=S\n+\n+\n+Test Case 11: Check IPv4, IPv6, TCP fields in RXD on specific queues\n+====================================================================\n+\n+Test steps are same to ``Test Case 01``, just change the launch command of testpmd, test packet and expected output\n+\n+Launch testpmd command::\n+\n+  ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr='[(2):ipv4,(3):ipv6,(4):tcp]' -- -i --rxq=16 --txq=16 --portmask=0x1\n+\n+check RXDID value correct::\n+\n+   expected: RXDID[16], RXDID[18], RXDID[19], RXDID[21]\n+\n+Create generic flow on NIC::\n+\n+  flow create 0 ingress pattern eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 tos is 23 ttl is 98 / end actions queue index 2 / end\n+  flow create 0 ingress pattern eth / ipv6 src is 2001::3 dst is 2001::4 tc is 12 / end actions queue index 3 / end\n+  flow create 0 ingress pattern eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / tcp src is 25 dst is 23 / end actions queue index 4 / end\n+\n+Test packet::\n+\n+  p = Ether(dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\",tos=23,ttl=98)/UDP()/Raw(load='XXXXXXXXXX')\n+  p = Ether(src='68:05:ca:a3:1b:28', dst='00:11:22:33:44:55')/IPv6(src='2001::3', dst='2001::4', tc=12,hlim=34,fl=0x98765)/UDP()/Raw(load='XXXXXXXXXX')\n+  p = Ether(dst='00:11:22:33:44:55')/IP(src='192.168.0.1',dst='192.168.0.2')/TCP(flags='AS', dport=23, sport=25)/Raw(load='XXXXXXXXXX')\n+\n+Expected output in testpmd::\n+\n+  Receive queue=0x2\n+  ver=4\n+  hdrlen=5\n+  tos=23\n+  ttl=98\n+  proto=17\n+\n+  Receive queue=0x3\n+  ver=6\n+  tc=12\n+  flow_hi4=0x9\n+  nexthdr=17\n+  hoplimit=34\n+\n+  Receive queue=0x4\n+  doff=5\n+  flags=AS\n+\n+\n+Test Case 12: Check testpmd use different parameters start\n+==========================================================\n+Test steps are same to ``Test Case 01``, use different \"proto_xtr\" parameters the launch command of testpmd, check RXDID value.\n+\n+use error parameter Launch testpmd::\n+\n+  ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=vxlan -- -i --rxq=4 --txq=4 --portmask=0x1 --nb-cores=2\n+\n+testpmd can't started, check \"iavf_lookup_flex_desc_type(): wrong flex_desc type, it should be: vlan|ipv4|ipv6|ipv6_flow|tcp|ovs|ip_offset\" in testpmd output.\n+\n+don't use parameter launch testpmd::\n+\n+   ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0 -- -i --rxq=4 --txq=4 --portmask=0x1 --nb-cores=2\n+\n+testpmd started, check \"iavf_configure_queues(): request RXDID[16] in Queue[0]\" in testpmd output\n+\n+\n+MPLS TEST\n+===================\n+\n+Test steps are same to ``Test Case 01``, just change the launch command of testpmd, test packet and expected output\n+\n+all MPLS cases use same parameter Launch testpmd::\n+\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=ip_offset -- -i  --portmask=0x1 --nb-cores=2\n+\n+check RXDID value correct::\n+\n+\texpected: RXDID[25]\n+\n+scapy prepare:\n+===================\n+about scapy:\n+from scapy.contrib.mpls import MPLS\n+\n+Test Case 13: Check ip offset of ip\n+===================================\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8847)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=18\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8847)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=18\n+\n+Test Case 14: check ip offset with vlan\n+=======================================\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=22\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=22\n+\n+Test Case 15: check offset with 2 vlan tag\n+==========================================\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=26\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=26\n+\n+Test Case 16: check ip offset with multi MPLS\n+=============================================\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8847)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=18\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8847)/MPLS(s=0)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=22\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=26\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=30\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=34\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8847)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=18\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8847)/MPLS(s=0)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=22\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=26\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=30\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=34\n+\n+Test Case 17: check ip offset with multi MPLS with vlan tag\n+===========================================================\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=22\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=26\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=30\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=34\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=38\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=22\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=26\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=30\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=34\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=38\n+\n+Test Case 18: check ip offset with multi MPLS with 2 vlan tag\n+=============================================================\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=26\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=30\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=34\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=38\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=42\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=26\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=30\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=34\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=38\n+\n+Test packet::\n+\n+    p = Ether(dst=\"00:11:22:33:44:55\",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()\n+\n+Expected output in testpmd::\n+\n+    Protocol Offset:ip_offset=42\n+\n",
    "prefixes": [
        "v2"
    ]
}