get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 104789,
    "url": "http://patchwork.dpdk.org/api/patches/104789/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dts/patch/20211201013737.107397-1-yuan.peng@intel.com/",
    "project": {
        "id": 3,
        "url": "http://patchwork.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": "<20211201013737.107397-1-yuan.peng@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20211201013737.107397-1-yuan.peng@intel.com",
    "date": "2021-12-01T01:37:37",
    "name": "[v2,2/2] test_plans/cvl_advanced_rss_checksum: Enable CVL PF/IAVF RSS with checksum as inputset",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "d6c06b43c704da397e42e00d507d1187a020d7ff",
    "submitter": {
        "id": 429,
        "url": "http://patchwork.dpdk.org/api/people/429/?format=api",
        "name": "Peng, Yuan",
        "email": "yuan.peng@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dts/patch/20211201013737.107397-1-yuan.peng@intel.com/mbox/",
    "series": [
        {
            "id": 20822,
            "url": "http://patchwork.dpdk.org/api/series/20822/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=20822",
            "date": "2021-12-01T01:36:53",
            "name": "[v2,1/2] test_plans/index: add cvl_advanced_rss_checksum to index.rst",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/20822/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/104789/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/104789/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 88E5CA0C4C;\n\tWed,  1 Dec 2021 09:39:43 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7606040E78;\n\tWed,  1 Dec 2021 09:39:43 +0100 (CET)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id C72CB4067B\n for <dts@dpdk.org>; Wed,  1 Dec 2021 09:39:41 +0100 (CET)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Dec 2021 00:39:40 -0800",
            "from pengyuan-dpdk.sh.intel.com ([10.67.117.62])\n by fmsmga001.fm.intel.com with ESMTP; 01 Dec 2021 00:39:39 -0800"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10184\"; a=\"235144468\"",
            "E=Sophos;i=\"5.87,278,1631602800\"; d=\"scan'208\";a=\"235144468\"",
            "E=Sophos;i=\"5.87,278,1631602800\"; d=\"scan'208\";a=\"654689216\""
        ],
        "X-ExtLoop1": "1",
        "From": "Peng Yuan <yuan.peng@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Peng Yuan <yuan.peng@intel.com>",
        "Subject": "[v2 2/2]test_plans/cvl_advanced_rss_checksum: Enable CVL PF/IAVF RSS\n with checksum as inputset",
        "Date": "Wed,  1 Dec 2021 01:37:37 +0000",
        "Message-Id": "<20211201013737.107397-1-yuan.peng@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "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": "Add cvl_advanced_rss_checksum_test_plan.rst to test_plans\n\nSigned-off-by: Peng Yuan <yuan.peng@intel.com>\n---\n .../cvl_advanced_rss_checksum_test_plan.rst   | 593 ++++++++++++++++++\n 1 file changed, 593 insertions(+)\n create mode 100644 test_plans/cvl_advanced_rss_checksum_test_plan.rst",
    "diff": "diff --git a/test_plans/cvl_advanced_rss_checksum_test_plan.rst b/test_plans/cvl_advanced_rss_checksum_test_plan.rst\nnew file mode 100644\nindex 00000000..6b0a949c\n--- /dev/null\n+++ b/test_plans/cvl_advanced_rss_checksum_test_plan.rst\n@@ -0,0 +1,593 @@\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+CVL: CVL enable RSS with checksum as inputset\n+=============================================\n+\n+Description\n+===========\n+\n+Enable CVL PF/IAVF RSS with checksum as inputset.\n+1. distribute ipv4 packet into queues based on the hash value of checksum.\n+2. distribute tcp / udp packet into queues based on hash value of l4 checksum.\n+\n+Pattern and input set\n+---------------------\n+.. table::\n+\n+    +-------------------------------+---------------------------+------------------------+\n+    | Default hash function: Non Symmetric_toeplitz                                      |\n+    +-------------------------------+---------------------------+------------------------+\n+    | Packet Type                   | Pattern                   | Input Set              |\n+    +===============================+===========================+========================+\n+    | IPv4/IPv6 + TCP/UDP/SCTP      | MAC_IPV4                  | ipv4-chksum            |\n+    +-------------------------------+---------------------------+------------------------+\n+    |                               | MAC_IPV4_UDP              | ipv4-chksum, l4-chksum |\n+    +-------------------------------+---------------------------+------------------------+\n+    |                               | MAC_IPV4_TCP              | ipv4-chksum, l4-chksum |\n+    +-------------------------------+---------------------------+------------------------+\n+    |                               | MAC_IPV4_SCTP             | ipv4-chksum, l4-chksum |\n+    +-------------------------------+---------------------------+------------------------+\n+    |                               | MAC_IPV6_UDP              | l4-chksum              |\n+    +-------------------------------+---------------------------+------------------------+\n+    |                               | MAC_IPV6_TCP              | l4-chksum              |\n+    +-------------------------------+---------------------------+------------------------+\n+    |                               | MAC_IPV6_SCTP             | l4-chksum              |\n+    +-------------------------------+---------------------------+------------------------+\n+\n+\n+Prerequisites\n+=============\n+\n+1. Hardware:\n+\n+   - Intel E810 series ethernet cards: columbiaville_25g/columbiaville_100g/\n+\n+2. Software:\n+\n+   - dpdk: http://dpdk.org/git/dpdk\n+   - scapy: http://www.secdev.org/projects/scapy/\n+\n+.. note::\n+\n+   This RSS feature is designed for CVL NIC 25G and 100g, so below cases only support CVL nic.\n+\n+3. For PF, bind the CVL port to dpdk driver in DUT::\n+\n+    modprobe vfio-pci\n+    ./usertools/dpdk-devbind.py --force --bind=vfio-pci 0000:3b:00.0\n+\n+4. For VF::\n+\n+    echo 1 > /sys/bus/pci/devices/0000\\:3b\\:00.0/sriov_numvfs\n+    ip link set enp59s0f0 vf 0 mac 00:11:22:33:44:55\n+    ./usertools/dpdk-devbind.py --force --bind=vfio-pci 0000:3b:01.0\n+\n+.. note::\n+\n+   The kernel must be >= 3.6+ and VT-d must be enabled in bios.\n+\n+4. Launch the testpmd to configuration queue of rx and tx number 16 in DUT::\n+\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c f -n 6 -- -i --rxq=16 --txq=16 --disable-rss --rxd=384 --txd=384\n+    testpmd> set fwd rxonly\n+    testpmd> set verbose 1\n+    testpmd> start\n+\n+Default parameters\n+------------------\n+\n+   MAC::\n+\n+    [Dest MAC]: 00:11:22:33:44:55\n+    [Src MAC]: 52:00:00:00:00:00\n+\n+   IPv4::\n+\n+    [Dest IP]: 192.168.0.2\n+    [Source IP]: 192.168.0.1\n+\n+   IPv6::\n+\n+    [Source IPv6]: ABAB:910A:2222:5498:8475:1111:3900:1010\n+    [Dest IPv6]: CDCD:910A:2222:5498:8475:1111:3900:2020\n+\n+   UDP/TCP/SCTP::\n+\n+    [Source Port]: 22\n+    [Dest Port]: 23\n+\n+\n+Common Test steps\n+=================\n+all the test cases run the same test steps as below:\n+\n+1. validate rule.\n+2. create rule and list rule.\n+3. send a basic hit pattern packet,record the hash value,\n+   check the packet is distributed to queues by RSS.\n+4. send hit pattern packet with changed input set in the rule.\n+   check the received packet have different hash value with basic packet.\n+   check the packet is distributed to queues by rss.\n+5. send hit pattern packet with changed input set not in the rule.\n+   check the received packet have same hash value with the basic packet.\n+   check the packet is distributed to queues by rss.\n+   note: if there is not this type packet in the case, omit this step.\n+6. send not hit pattern packets with input set in the rule.\n+   check the received packets have not hash value, and distributed to queue 0.\n+   note: if there is not this type packet in the case, omit this step.\n+7. distroy the rule and list rule.\n+8. send same packet with step 3.\n+   check the received packets have not hash value, and distributed to queue 0.\n+\n+Test case 1: PF_MAC_IPV4_IPV4_CHKSUM\n+====================================\n+1. create rss rule::\n+\n+    flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-chksum  end queues end / end\n+\n+2. basic hit pattern packet::\n+\n+    p1=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\",chksum=0x1)/ (\"X\"*48)\n+\n+3. hit pattern/changed defined input set::\n+\n+    p2=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\",chksum=0xffff)/ (\"X\"*48)\n+\n+4. hit pattern/changed not defined input set::\n+\n+    p3=Ether(dst=\"00:11:22:33:44:53\", src=\"52:00:00:00:00:01\")/IP(src=\"192.168.1.1\",dst=\"192.168.1.2\",chksum=0x1)/ (\"X\"*48)\n+\n+5. not hit pattern::\n+\n+    p4=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1010\")/(\"X\"*48)\n+\n+Test case 2: PF_MAC_IPV4_UDP\n+============================\n+Subcase 1: PF_MAC_IPV4_UDP_L4_CHKSUM\n+------------------------------------\n+1. create rss rule::\n+\n+    flow create 0 ingress pattern eth / ipv4 / udp / end actions rss types l4-chksum  end queues end / end\n+\n+2. basic hit pattern packet::\n+\n+    p1=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\")/UDP(sport=22, dport=23,chksum=0xffff)/(\"X\"*48)\n+\n+3. hit pattern/changed defined input set::\n+\n+    p2=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\")/UDP(sport=22, dport=23,chksum=0xfffe)/(\"X\"*48)\n+\n+4. hit pattern/changed not defined input set::\n+\n+    p3=Ether(dst=\"00:11:22:33:44:53\", src=\"52:00:00:00:00:01\")/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\",chksum=0x3)/UDP(sport=32, dport=33,chksum=0xffff)/(\"X\"*48)\n+\n+5. not hit pattern::\n+\n+    p4=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\")/SCTP(sport=22, dport=23,chksum=0xffff)/(\"X\"*48)\n+\n+Subcase 2: PF_MAC_IPV4_UDP_IPV4_CHKSUM\n+--------------------------------------\n+1. create rss rule::\n+\n+    flow create 0 ingress pattern eth / ipv4 / udp / end actions rss types ipv4-chksum  end queues end / end\n+\n+2. basic hit pattern packet::\n+\n+    p1=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\",chksum=0xffff)/UDP(sport=22, dport=23)/(\"X\"*48)\n+\n+3. hit pattern/changed defined input set::\n+\n+    p2=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\",chksum=0xfffe)/UDP(sport=22, dport=23)/(\"X\"*48)\n+\n+4. hit pattern/changed not defined input set::\n+\n+    p3=Ether(dst=\"00:11:22:33:44:53\", src=\"52:00:00:00:00:01\")/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\",chksum=0xffff)/UDP(sport=32, dport=33,chksum=0xffff)/(\"X\"*48)\n+\n+5. not hit pattern::\n+\n+    p4=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\",chksum=0xffff)/SCTP(sport=22, dport=23)/(\"X\"*48)\n+\n+Test case 3: PF_MAC_IPV4_TCP\n+============================\n+The rules and packets in this test case is similar to \"Test case: PF_MAC_IPV4_UDP\",\n+just change some parts of rules and packets:\n+\n+    rule:\n+        change udp to tcp\n+    packets:\n+        if the packet's L4 layer is UDP, change it to TCP;\n+        if the packet's L4 layer is TCP, change it to UDP;\n+\n+Subcase 1: PF_MAC_IPV4_TCP_L4_CHKSUM\n+------------------------------------\n+\n+Subcase 2: PF_MAC_IPV4_TCP_IPV4_CHKSUM\n+--------------------------------------\n+\n+Test case 4: PF_MAC_IPV4_SCTP\n+=============================\n+The rules and packets in this test case is similar to \"Test case: PF_MAC_IPV4_UDP\",\n+just change some parts of rules and packets:\n+\n+    rule:\n+        change udp to sctp\n+    packets:\n+        if the packet's L4 layer is UDP, change it to SCTP;\n+        if the packet's L4 layer is SCTP, change it to TCP;\n+\n+Subcase 1: PF_MAC_IPV4_SCTP_L4_CHKSUM\n+-------------------------------------\n+\n+Subcase 2: PF_MAC_IPV4_SCTP_IPV4_CHKSUM\n+---------------------------------------\n+\n+\n+Test case 5: PF_MAC_IPV6_UDP_L4_CHKSUM\n+======================================\n+1. create rss rule::\n+\n+    flow create 0 ingress pattern eth / ipv6 / udp / end actions rss types l4-chksum  end queues end / end\n+\n+2. basic hit pattern packet::\n+\n+    p1 = Ether(src=\"52:00:00:00:00:00\", dst=\"00:11:22:33:44:55\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1010\")/UDP(sport=22, dport=23, chksum=0x1)/(\"X\"*48)\n+\n+3. hit pattern/changed defined input set::\n+\n+    p2 = Ether(src=\"52:00:00:00:00:00\", dst=\"00:11:22:33:44:55\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1010\")/UDP(sport=22, dport=23, chksum=0x2)/(\"X\"*48)\n+\n+4. hit pattern/changed not defined input set::\n+\n+    p3 = Ether(src=\"52:00:00:00:00:01\", dst=\"00:11:22:33:44:53\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1011\")/UDP(sport=32, dport=33, chksum=0x1)/(\"X\"*48)\n+\n+5. not hit pattern::\n+\n+    p4 = Ether(src=\"52:00:00:00:00:00\", dst=\"00:11:22:33:44:55\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1010\")/TCP(sport=22, dport=23, chksum=0x1)/(\"X\"*49)\n+\n+Test case 6: PF_MAC_IPV6_TCP_L4_CHKSUM\n+======================================\n+1. create rss rule::\n+\n+    flow create 0 ingress pattern eth / ipv6 / tcp / end actions rss types l4-chksum  end queues end / end\n+\n+2. basic hit pattern packet::\n+\n+    p1 = Ether(src=\"52:00:00:00:00:00\", dst=\"00:11:22:33:44:55\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1010\")/TCP(sport=22, dport=23, chksum=0x1)/(\"X\"*48)\n+\n+3. hit pattern/changed defined input set::\n+\n+    p2 = Ether(src=\"52:00:00:00:00:00\", dst=\"00:11:22:33:44:55\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1010\")/TCP(sport=22, dport=23, chksum=0x2)/(\"X\"*48)\n+\n+4. hit pattern/changed not defined input set::\n+\n+    p3 = Ether(src=\"52:00:00:00:00:01\", dst=\"00:11:22:33:44:53\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1011\")/TCP(sport=32, dport=33, chksum=0x1)/(\"X\"*48)\n+\n+5. not hit pattern::\n+\n+    p4 = Ether(src=\"52:00:00:00:00:00\", dst=\"00:11:22:33:44:55\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1010\")/SCTP(sport=22, dport=23, chksum=0x1)/(\"X\"*49)\n+\n+Test case 7: PF_MAC_IPV6_SCTP_L4_CHKSUM\n+=======================================\n+1. create rss rule::\n+\n+    flow create 0 ingress pattern eth / ipv6 / sctp / end actions rss types l4-chksum  end queues end / end\n+\n+2. basic hit pattern packet::\n+\n+    p1 = Ether(src=\"52:00:00:00:00:00\", dst=\"00:11:22:33:44:55\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1010\")/SCTP(sport=22, dport=23, chksum=0xffffffff)/(\"X\"*48)\n+\n+3. hit pattern/changed defined input set::\n+\n+    p2 = Ether(src=\"52:00:00:00:00:00\", dst=\"00:11:22:33:44:55\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1010\")/SCTP(sport=22, dport=23, chksum=0xfffffffe)/(\"X\"*48)\n+\n+4. hit pattern/changed not defined input set::\n+\n+    p3 = Ether(src=\"52:00:00:00:00:01\", dst=\"00:11:22:33:44:53\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1011\")/SCTP(sport=32, dport=33, chksum=0xffffffff)/(\"X\"*48)\n+\n+5. not hit pattern::\n+\n+    p4 = Ether(src=\"52:00:00:00:00:00\", dst=\"00:11:22:33:44:55\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1010\")/UDP(sport=22, dport=23, chksum=0x1)/(\"X\"*49)\n+\n+Test case 8: PF Checksum for different payload length\n+=====================================================\n+1. launch testpmd without \"--disable-rss\"::\n+\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c f -n 6 -- -i --rxq=16 --txq=16\n+    testpmd> set fwd rxonly\n+    testpmd> set verbose 1\n+    testpmd> start\n+\n+2. Send packets with different payload length::\n+\n+    p1=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP()/(\"X\"*48)\n+    p2=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP()/(\"X\"*64)\n+    p3=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP()/UDP()/(\"X\"*48)\n+    p4=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP()/UDP()/(\"X\"*64)\n+    p5=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP()/TCP()/(\"X\"*48)\n+    p6=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP()/TCP()/(\"X\"*64)\n+    p7=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP()/SCTP()/(\"X\"*48)\n+    p8=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP()/SCTP()/(\"X\"*64)\n+\n+   Check all the packets received have same hash value.\n+\n+3. create RSS rule of 5-tuple inputset for each packet type::\n+\n+    flow create 0 ingress pattern eth / ipv4 / udp / end actions rss types ipv4-udp  end queues end / end\n+    flow create 0 ingress pattern eth / ipv4 / tcp / end actions rss types ipv4-tcp  end queues end / end\n+    flow create 0 ingress pattern eth / ipv4 / sctp / end actions rss types ipv4-sctp  end queues end / end\n+\n+4. Send packets of step 2.\n+   Check the received packets with same packet type have same hash value.\n+\n+5. create RSS rule of l4-chksum inputset for each packet type::\n+\n+    flow create 0 ingress pattern eth / ipv4 / udp / end actions rss types l4-chksum  end queues end / end\n+    flow create 0 ingress pattern eth / ipv4 / tcp / end actions rss types l4-chksum  end queues end / end\n+    flow create 0 ingress pattern eth / ipv4 / sctp / end actions rss types l4-chksum  end queues end / end\n+\n+6. Send packets of step 2.\n+   Check the UDP/TCP/SCTP packets with different payload length have different hash value.\n+\n+7. create RSS rule of ipv4-chksum inputset for each packet type::\n+\n+    flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-chksum  end queues end / end\n+    flow create 0 ingress pattern eth / ipv4 / udp / end actions rss types ipv4-chksum  end queues end / end\n+    flow create 0 ingress pattern eth / ipv4 / tcp / end actions rss types ipv4-chksum  end queues end / end\n+    flow create 0 ingress pattern eth / ipv4 / sctp / end actions rss types ipv4-chksum  end queues end / end\n+\n+8. Send packets of step 2.\n+   Check the IPV4/UDP/TCP/SCTP packets with different payload length have different hash value.\n+\n+Test case 9: PF Set HW csum, flow rule doesn’t impact RX checksum and TX checksum\n+=================================================================================\n+1. launch testpmd without \"--disable-rss\"::\n+\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c f -n 6 -- -i --rxq=16 --txq=16\n+\n+2. Set tx checksum::\n+\n+    port stop all\n+    set fwd csum\n+    csum set ip hw 0\n+    csum set udp hw 0\n+    csum set tcp hw 0\n+    csum set sctp hw 0\n+    port start all\n+    set verbose 1\n+    start\n+\n+3. Capture the tx packet at tester port::\n+\n+    tcpdump -i enp216s0f0 -Q in -e -n -v -x\n+\n+4. Send packets::\n+\n+    p1=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\", chksum=0xfff3)/(\"X\"*48)\n+    p2=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\")/TCP(sport=22, chksum=0xfff3)/(\"X\"*48)\n+    p3=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\")/UDP(sport=22, chksum=0x1)/(\"X\"*48)\n+    p4=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\")/SCTP(sport=22, chksum=0x1)/(\"X\"*48)\n+    p5=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IPv6()/TCP(sport=22, chksum=0xe38)/(\"X\"*48)\n+    p6=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IPv6()/UDP(sport=22, chksum=0xe38)/(\"X\"*48)\n+    p7=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IPv6()/SCTP(sport=22, chksum=0xf)/(\"X\"*48)\n+\n+   Check rx checksum good or bad, check if the tx checksum correct.\n+\n+5. Create rss rules with chsum as inputset::\n+\n+    flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-chksum end queues end / end\n+    flow create 0 ingress pattern eth / ipv4 / tcp / end actions rss types l4-chksum end queues end / end\n+    flow create 0 ingress pattern eth / ipv4 / udp / end actions rss types l4-chksum end queues end / end\n+    flow create 0 ingress pattern eth / ipv4 / sctp / end actions rss types l4-chksum end queues end / end\n+    flow create 0 ingress pattern eth / ipv6 / tcp / end actions rss types l4-chksum end queues end / end\n+    flow create 0 ingress pattern eth / ipv6 / udp / end actions rss types l4-chksum end queues end / end\n+    flow create 0 ingress pattern eth / ipv6 / sctp / end actions rss types l4-chksum end queues end / end\n+\n+6. Send the same packets, check the hash value changed, check rx and tx checksum, get the same result.\n+\n+Test case 10: PF Combined case with fdir queue group\n+====================================================\n+1. start testpmd without \"--disable-rss\"::\n+\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c f -n 6 -- -i --rxq=16 --txq=16\n+    testpmd> set fwd rxonly\n+    testpmd> set verbose 1\n+    testpmd> start\n+\n+2. Create fdir rules to queue group::\n+\n+    flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 / tcp / end actions rss queues 4 5 end / end\n+    flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 / udp / end actions rss queues 6 7 end / end\n+    flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 / sctp / end actions rss queues 8 9 end / end\n+    flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 / tcp / end actions rss queues 10 11 end / end\n+    flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 / udp / end actions rss queues 12 13 end / end\n+    flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 / sctp / end actions rss queues 14 15 end / end\n+\n+3. Send packets::\n+\n+    p1=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\", chksum=0xfff3)/(\"X\"*48)\n+    p2=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\")/TCP(sport=22, chksum=0xfff3)/(\"X\"*48)\n+    p3=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\")/UDP(sport=22, chksum=0x1)/(\"X\"*48)\n+    p4=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IP(src=\"192.168.0.1\")/SCTP(sport=22, chksum=0x1)/(\"X\"*48)\n+    p5=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IPv6()/TCP(sport=22, chksum=0xe38)/(\"X\"*48)\n+    p6=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IPv6()/UDP(sport=22, chksum=0xe38)/(\"X\"*48)\n+    p7=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:00\")/IPv6(src=\"ABAB:910A:2222:5498:8475:1111:3900:1010\")/SCTP(sport=22, chksum=0xf)/(\"X\"*48)\n+\n+   Check p2-p7 are distributed to specified queue group,\n+   p1 is distributed by RSS hash value.\n+\n+4. Create rss rule with inputset checksum::\n+\n+    flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-chksum  end queues end / end\n+    flow create 0 ingress pattern eth / ipv4 / tcp / end actions rss types l4-chksum  end queues end / end\n+    flow create 0 ingress pattern eth / ipv4 / udp / end actions rss types l4-chksum  end queues end / end\n+    flow create 0 ingress pattern eth / ipv4 / sctp / end actions rss types l4-chksum  end queues end / end\n+    flow create 0 ingress pattern eth / ipv6 / tcp / end actions rss types l4-chksum  end queues end / end\n+    flow create 0 ingress pattern eth / ipv6 / udp / end actions rss types l4-chksum  end queues end / end\n+    flow create 0 ingress pattern eth / ipv6 / sctp / end actions rss types l4-chksum  end queues end / end\n+\n+   Send same packets again. Check hash values of p2-p6 are changed, but queue group not changed.\n+   Check p1 hash value changed too, and distributed by RSS hash value.\n+\n+5. Create fdir rule to queue group for ipv4 pattern::\n+\n+    flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 / end actions rss queues 0 1 2 3 end / end\n+\n+   Send p1, check the packet distributed to queue group without hash value changed.\n+\n+Test case 11: PF negative case\n+==============================\n+1. create a rule with invalid inputset::\n+\n+    flow create 0 ingress pattern eth / ipv4 / end actions rss types l4-chksum end queues end / end\n+    ice_flow_create(): Failed to create flow\n+    port_flow_complain(): Caught PMD error type 10 (item specification): cause: 0x7fff0a9b9f80, Invalid input set: Invalid argument\n+\n+2. create a rule with inputset not supported::\n+\n+    flow create 0 ingress pattern eth / ipv6 / end actions rss types ipv6-chksum  end queues end / end\n+    Bad arguments\n+\n+Test case 12: VF_MAC_IPV4_IPV4_CHKSUM\n+=====================================\n+Step1-3 and step5 are the same as Test case 1.\n+Only the packet in step4 is replaced by::\n+\n+    p3=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:01\")/IP(src=\"192.168.1.1\",dst=\"192.168.1.2\",chksum=0x1)/ (\"X\"*48)\n+\n+Test case 13: VF_MAC_IPV4_UDP\n+=============================\n+Subcase 1: VF_MAC_IPV4_UDP_L4_CHKSUM\n+------------------------------------\n+Step1-3 and step5 are the same as Test case 2, Subcase 1.\n+Only the packet in step4 is replaced by::\n+\n+    p3=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:01\")/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\",chksum=0x3)/UDP(sport=32, dport=33,chksum=0xffff)/(\"X\"*48)\n+\n+Subcase 2: VF_MAC_IPV4_UDP_IPV4_CHKSUM\n+--------------------------------------\n+Step1-3 and step5 are the same as Test case 2, Subcase 2.\n+Only the packet in step4 is replaced by::\n+\n+    p3=Ether(dst=\"00:11:22:33:44:55\", src=\"52:00:00:00:00:01\")/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\",chksum=0xffff)/UDP(sport=32, dport=33,chksum=0xffff)/(\"X\"*48)\n+\n+Test case 14: VF_MAC_IPV4_TCP\n+=============================\n+The rules and packets in this test case is similar to \"Test case: VF_MAC_IPV4_UDP\"\n+just change some parts of rules and packets:\n+\n+    rule:\n+        change udp to tcp\n+    packets:\n+        if the packet's L4 layer is UDP, change it to TCP;\n+        if the packet's L4 layer is TCP, change it to UDP;\n+\n+Subcase 1: VF_MAC_IPV4_TCP_L4_CHKSUM\n+------------------------------------\n+\n+Subcase 2: VF_MAC_IPV4_TCP_IPV4_CHKSUM\n+--------------------------------------\n+\n+Test case 15: VF_MAC_IPV4_SCTP\n+==============================\n+The rules and packets in this test case is similar to \"Test case: VF_MAC_IPV4_UDP\"\n+just change some parts of rules and packets:\n+\n+    rule:\n+        change udp to sctp\n+    packets:\n+        if the packet's L4 layer is UDP, change it to SCTP;\n+        if the packet's L4 layer is SCTP, change it to TCP;\n+\n+Subcase 1: VF_MAC_IPV4_SCTP_L4_CHKSUM\n+-------------------------------------\n+\n+Subcase 2: VF_MAC_IPV4_SCTP_IPV4_CHKSUM\n+---------------------------------------\n+\n+Test case 16: VF_MAC_IPV6_UDP_L4_CHKSUM\n+=======================================\n+Step1-3 and step5 are the same as Test case 5.\n+Only the packet in step4 is replaced by::\n+\n+    p3 = Ether(src=\"52:00:00:00:00:01\", dst=\"00:11:22:33:44:55\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1011\")/UDP(sport=32, dport=33, chksum=0x1)/(\"X\"*48)\n+\n+Test case 17: VF_MAC_IPV6_TCP_L4_CHKSUM\n+=======================================\n+Step1-3 and step5 are the same as Test case 6.\n+Only the packet in step4 is replaced by::\n+\n+    p3 = Ether(src=\"52:00:00:00:00:01\", dst=\"00:11:22:33:44:55\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1011\")/TCP(sport=32, dport=33, chksum=0x1)/(\"X\"*48)\n+\n+Test case 18: VF_MAC_IPV6_SCTP_L4_CHKSUM\n+========================================\n+Step1-3 and step5 are the same as Test case 7.\n+Only the packet in step4 is replaced by::\n+\n+    p3 = Ether(src=\"52:00:00:00:00:01\", dst=\"00:11:22:33:44:55\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\", src=\"ABAB:910A:2222:5498:8475:1111:3900:1011\")/SCTP(sport=32, dport=33, chksum=0xffffffff)/(\"X\"*48)\n+\n+Test case 19: VF Checksum for different payload length\n+======================================================\n+The case steps are the same as Test case 8.\n+\n+Test case 20: VF Set HW csum, flow rule doesn’t impact RX checksum and TX checksum\n+==================================================================================\n+The case steps are the same as Test case 9.\n+\n+Test case 21: VF Combined case with fdir queue group\n+====================================================\n+Step1 is the same as Test case 10.\n+\n+2. Create fdir rules to queue group::\n+\n+    flow create 0 ingress pattern eth / ipv4 / tcp / end actions rss queues 4 5 end / end\n+    flow create 0 ingress pattern eth / ipv4 / udp / end actions rss queues 6 7 end / end\n+    flow create 0 ingress pattern eth / ipv4 src is 192.168.0.1 / sctp / end actions rss queues 8 9 end / end\n+    flow create 0 ingress pattern eth / ipv6 / tcp / end actions rss queues 10 11 end / end\n+    flow create 0 ingress pattern eth / ipv6 / udp / end actions rss queues 12 13 end / end\n+    flow create 0 ingress pattern eth / ipv6 src is ABAB:910A:2222:5498:8475:1111:3900:1010 / sctp / end actions rss queues 14 15 end / end\n+\n+Step3 and step4 are the same as Test case 10.\n+\n+5. Create fdir rule to queue group for ipv4 pattern::\n+\n+    flow destroy 0 rule 0\n+    flow destroy 0 rule 1\n+    flow destroy 0 rule 2\n+    flow create 0 ingress pattern eth / ipv4 src is 192.168.0.1 / end actions rss queues 0 1 2 3 end / end\n+\n+   Send p1, check the packet distributed to queue group without hash value changed.\n+\n+Test case 22: VF negative case\n+==============================\n+The case steps are the same as Test case 11.\n",
    "prefixes": [
        "v2",
        "2/2"
    ]
}