get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 107073,
    "url": "https://patches.dpdk.org/api/patches/107073/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20220209121337.511580-1-yaqi.tang@intel.com/",
    "project": {
        "id": 3,
        "url": "https://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": "<20220209121337.511580-1-yaqi.tang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220209121337.511580-1-yaqi.tang@intel.com",
    "date": "2022-02-09T12:13:37",
    "name": "[V5] test_plans/cvl_switch_filter: add test plan for cvl qinq switch filter support l4",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "339133bf0d7fa6912100aca2aaa5c5942b7d2566",
    "submitter": {
        "id": 2357,
        "url": "https://patches.dpdk.org/api/people/2357/?format=api",
        "name": "Yaqi Tang",
        "email": "yaqi.tang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20220209121337.511580-1-yaqi.tang@intel.com/mbox/",
    "series": [
        {
            "id": 21540,
            "url": "https://patches.dpdk.org/api/series/21540/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=21540",
            "date": "2022-02-09T12:13:37",
            "name": "[V5] test_plans/cvl_switch_filter: add test plan for cvl qinq switch filter support l4",
            "version": 5,
            "mbox": "https://patches.dpdk.org/series/21540/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/107073/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/107073/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 7780AA034E;\n\tWed,  9 Feb 2022 05:15:28 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3EBB0410FD;\n\tWed,  9 Feb 2022 05:15:28 +0100 (CET)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id 877A2410F3\n for <dts@dpdk.org>; Wed,  9 Feb 2022 05:15:26 +0100 (CET)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 08 Feb 2022 20:15:25 -0800",
            "from dpdk-yaqi.sh.intel.com ([10.67.119.205])\n by orsmga001.jf.intel.com with ESMTP; 08 Feb 2022 20:15:24 -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=1644380126; x=1675916126;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=h+BIuHj9VQNc3l3QVbt/ZmKZP7oguOWpq7zJ10MDvL4=;\n b=GGUsbv7XxYI9X6PLmWvuetEsIBjJJPCNFRItfdRd5pGJgzYLXZB3J9V0\n ht2Z3eVb154c58+i6u2p51YSLFUe0f4aLS/P31rJKH5LzDu8+xBYAK0nA\n 7FwXHUYWU7Iv15WC2tOfSCxu0y753RJbc1JLN3mQZzaeuHxhO8ByJYvCD\n HDa4NiVEiHr0eQks2lvJDlAtAH3fCeK1NlRp+A38f6mOpC3Cw5Ek+wcgG\n 421b8DzLgdFQ9CJ9yVRWIiY2kC9xpneoTXKuxxT8HTNSkTwuTeLXI1cFz\n pZORlwrAqNfh7XMAi6/ZZibbfMi8gCIdKEei1bwDp7iYr8s9+OT0TVwfx w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10252\"; a=\"232680379\"",
            "E=Sophos;i=\"5.88,354,1635231600\"; d=\"scan'208\";a=\"232680379\"",
            "E=Sophos;i=\"5.88,354,1635231600\"; d=\"scan'208\";a=\"568095126\""
        ],
        "X-ExtLoop1": "1",
        "From": "Yaqi Tang <yaqi.tang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Yaqi Tang <yaqi.tang@intel.com>",
        "Subject": "[dts][PATCH V5] test_plans/cvl_switch_filter: add test plan for cvl\n qinq switch filter support l4",
        "Date": "Wed,  9 Feb 2022 12:13:37 +0000",
        "Message-Id": "<20220209121337.511580-1-yaqi.tang@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "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": "CVL support l4 for QinQ switch filter in PF driver, and port can support as eth / vlan / vlan / IP / tcp|udp.\n\nSigned-off-by: Yaqi Tang <yaqi.tang@intel.com>\nTested-by: Yaqi Tang < yaqi.tang@intel.com>\n---\n test_plans/cvl_switch_filter_test_plan.rst | 440 +++++++++++++++++++++\n 1 file changed, 440 insertions(+)",
    "diff": "diff --git a/test_plans/cvl_switch_filter_test_plan.rst b/test_plans/cvl_switch_filter_test_plan.rst\nindex 770af996..c064b955 100644\n--- a/test_plans/cvl_switch_filter_test_plan.rst\n+++ b/test_plans/cvl_switch_filter_test_plan.rst\n@@ -4761,3 +4761,443 @@ Test case: unsupported patterns in os default package\n      testpmd> flow list 0\n \n    check the rule not exists in the list.\n+\n+================================\n+CVL Switch Filter QINQ Test Plan\n+================================\n+\n+Description\n+===========\n+CVL support l4 for QinQ switch filter in PF driver is by dst MAC + outer VLAN id + inner VLAN id + dst IP + dst port, and port can support as eth / vlan / vlan / IP / tcp|udp.\n+* Enable QINQ switch filter for IPv4/IPv6, IPv4 + TCP/UDP in non-pipeline mode. \n+* Enable QINQ switch filter for IPv6 + TCP/UDP in pipeline mode. \n+\n+Test Case\n+=========\n+\n+Common Steps\n+------------\n+All the packets in the QINQ test case use below settings:\n+dst mac: 00:11:22:33:44:55\n+dst mac change inputset: 00:11:22:33:44:66\n+ipv4 src: 192.168.1.1\n+ipv4 dst: 192.168.1.2\n+ipv4 src change inputset: 192.168.1.3\n+ipv4 dst change inputset: 192.168.1.4\n+ipv6 dst: CDCD:910A:2222:5498:8475:1111:3900:2020 \n+ipv6 dst change inputset: CDCD:910A:2222:5498:8475:1111:3900:2023\n+outer vlan tci: 2\n+outer vlan tci change inputset: 1\n+inner vlan tci: 1\n+inner vlan tci change inputset: 2\n+sport: 50\n+sport change inputset: 51\n+dport: 23\n+dport change inputset: 22\n+\n+#Non-pipeline mode\n+\n+Test Case 1: MAC_QINQ_IPV4\n+--------------------------\n+The test case enable QINQ switch filter for IPv4 in non-pipeline mode, and port can support as dst MAC + outer VLAN id + inner VLAN id + IPv4.\n+\n+Test Steps\n+..........\n+1. Validate a rule::\n+   \n+     testpmd> flow validate 0 ingress pattern eth dst is <dst mac> / vlan tci is <outer vlan tci> / vlan tci is <inner vlan tci> / ipv4 src is <ipv4 src> dst is <ipv4 dst> / end actions queue index 2 / end\n+\n+   Get the message::\n+\n+     Flow rule validated\n+\n+2. Create a rule and list rules::\n+\n+     testpmd> flow create 0 ingress pattern eth dst is <dst mac> / vlan tci is <outer vlan tci> / vlan tci is <inner vlan tci> / ipv4 src is <ipv4 src> dst is <ipv4 dst> / end actions queue index 2 / end\n+     \n+   Get the message::\n+\n+     Flow rule #0 created\n+   \n+3. Check the flow list::\n+\n+     testpmd> flow list 0\n+\n+   ID      Group   Prio    Attr    Rule\n+   0       0       0       i--     ETH VLAN VLAN IPV4 => QUEUE\n+\n+4. Send matched packet in scapy on tester, check the DUT received this packet and the action is right.\n+\n+Tester::\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IP(src=\"<ipv4 src>\",dst=\"<ipv4 dst>\")/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+DUT::\n+\n+    testpmd> port 0/queue 2: received 1 packets\n+  src=A4:BF:01:4D:6F:32 - dst=00:11:22:33:44:55 - type=0x8100 - length=122 - nb_segs=1 - RSS hash=0x26878aad - RSS queue=0x2 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG  - sw ptype: L2_ETHER_VLAN INNER_L2_ETHER_VLAN INNER_L3_IPV4  - l2_len=18 - inner_l2_len=4 - inner_l3_len=20 - Receive queue=0x2\n+  ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD\n+\n+5. Send mismatched packet in scapy on tester, check the DUT received this packet and the action is not right.\n+\n+Tester::\n+\n+    >>> sendp([Ether(dst=\"<dst mac change inputset>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IP(src=\"<ipv4 src>\",dst=\"<ipv4 dst>\")/(\"X\"*80)],iface=\"<tester interface>\")\n+    \n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci change inputset>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IP(src=\"<ipv4 src>\",dst=\"<ipv4 dst>\")/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci change inputset>,type=0x0800)/IP(src=\"<ipv4 src>\",dst=\"<ipv4 dst>\")/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IP(src=\"<ipv4 src change inputset>\",dst=\"<ipv4 dst>\")/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+6. Destroy a rule and list rules::\n+\n+     testpmd> flow destroy 0 rule 0\n+  \n+   Get the message::\n+\n+     Flow rule #0 destroyed\n+\n+7. Check the flow list::\n+\n+     testpmd> flow list 0\n+\n+   Check the rule not exists in the list.\n+   Send matched packets in step 4, check the action is not right.\n+\n+Test Case 2: MAC_QINQ_IPV6\n+--------------------------\n+The test case enable QINQ switch filter for IPv6 in non-pipeline mode, and port can support as dst MAC + outer VLAN id + inner VLAN id + IPv6.\n+\n+Test Steps\n+..........\n+1. Validate a rule::\n+   \n+     testpmd> flow validate 0 ingress pattern eth dst is <dst mac> / vlan tci is <outer vlan tci> / vlan tci is <inner vlan tci> / ipv6 dst is <ipv6 dst> / end actions rss queues 2 3 end / end\n+\n+   Get the message::\n+\n+     Flow rule validated\n+\n+2. Create a rule and list rules::\n+\n+     testpmd> flow create 0 ingress pattern eth dst is <dst mac> / vlan tci is <outer vlan tci> / vlan tci is <inner vlan tci> / ipv6 dst is <ipv6 dst> / end actions rss queues 2 3 end / end\n+\n+   Get the message::\n+\n+     Flow rule #0 created\n+   \n+3. Check the flow list::\n+\n+     testpmd> flow list 0\n+\n+   ID      Group   Prio    Attr    Rule\n+   0       0       0       i--     ETH VLAN VLAN IPV6 => RSS\n+\n+4. Send matched packet in scapy on tester, check the DUT received this packet and the action is right.\n+\n+Tester::\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IPv6(dst=\"<ipv6 dst>\")/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+DUT::\n+\n+    testpmd> port 0/queue 2: received 1 packets\n+  src=00:00:00:00:00:00 - dst=00:11:22:33:44:55 - type=0x8100 - length=142 - nb_segs=1 - RSS hash=0xb0c13d2c - RSS queue=0x2 - hw ptype: L2_ETHER L3_IPV6_EXT_UNKNOWN L4_NONFRAG  - sw ptype: L2_ETHER_VLAN INNER_L2_ETHER_VLAN INNER_L3_IPV6  - l2_len=18 - inner_l2_len=4 - inner_l3_len=40 - Receive queue=0x2\n+  ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD\n+\n+5. Send mismatched packet in scapy on tester, check the DUT received this packet and the action is not right.\n+\n+Tester::\n+\n+    >>> sendp([Ether(dst=\"<dst mac change inputset>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IPv6(dst=\"<ipv6 dst>\")/(\"X\"*80)],iface=\"<tester interface>\")\n+   \n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci change inputset>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IPv6(dst=\"<ipv6 dst>\")/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci change inputset>,type=0x0800)/IPv6(dst=\"<ipv6 dst>\")/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IPv6(dst=\"<ipv6 dst change inputset>\")/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+6. Destroy a rule and list rules::\n+\n+     testpmd> flow destroy 0 rule 0\n+  \n+   Get the message::\n+\n+     Flow rule #0 destroyed\n+\n+7. Check the flow list::\n+\n+     testpmd> flow list 0\n+\n+   Check the rule not exists in the list.\n+   Send matched packets in step 4, check the action is not right.\n+\n+Test Case 3: MAC_QINQ_IPV4_UDP\n+------------------------------\n+The test case enable QINQ switch filter for IPv4 + UDP in non-pipeline mode, and port can support as dst MAC + outer VLAN id + inner VLAN id + IPv4 + UDP.\n+\n+Test Steps\n+..........\n+1. Validate a rule::\n+   \n+     testpmd> flow validate 0 ingress pattern eth dst is <dst mac> / vlan tci is <outer vlan tci> / vlan tci is <inner vlan tci> / ipv4 / udp src is <sport> dst is <dport> / end actions queue index 2 / end\n+\n+   Get the message::\n+\n+     Flow rule validated\n+\n+2. Create a rule and list rules::\n+\n+     testpmd> flow create 0 ingress pattern eth dst is <dst mac> / vlan tci is <outer vlan tci> / vlan tci is <inner vlan tci> / ipv4 / udp src is <sport> dst is <dport> / end actions queue index 2 / end\n+     \n+   Get the message::\n+\n+     Flow rule #0 created\n+   \n+3. Check the flow list::\n+\n+     testpmd> flow list 0\n+\n+   ID      Group   Prio    Attr    Rule\n+   0       0       0       i--     ETH VLAN VLAN IPV4 UDP => QUEUE\n+\n+4. Send matched packet in scapy on tester, check the DUT received this packet and the action is right.\n+\n+Tester::\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IP()/UDP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+DUT::\n+\n+    testpmd> port 0/queue 2: received 1 packets\n+  src=00:00:00:00:00:00 - dst=00:11:22:33:44:55 - type=0x8100 - length=130 - nb_segs=1 - RSS hash=0xddc4fdb3 - RSS queue=0x2 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_UDP  - sw ptype: L2_ETHER_VLAN INNER_L2_ETHER_VLAN INNER_L3_IPV4 INNER_L4_UDP  - l2_len=18 - inner_l2_len=4 - inner_l3_len=20 - inner_l4_len=8 - Receive queue=0x2\n+  ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD\n+\n+5. Send mismatched packet in scapy on tester, check the DUT received this packet and the action is not right.\n+\n+Tester::\n+\n+    >>> sendp([Ether(dst=\"<dst mac change inputset>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IP()/UDP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+    \n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci change inputset>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IP()/UDP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci change inputset>,type=0x0800)/IP()/UDP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IP()/UDP(sport=<sport>,dport=<dport change inputset>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+6. Destroy a rule and list rules::\n+\n+     testpmd> flow destroy 0 rule 0\n+  \n+   Get the message::\n+\n+     Flow rule #0 destroyed\n+\n+7. Check the flow list::\n+\n+     testpmd> flow list 0\n+\n+   Check the rule not exists in the list.\n+   Send matched packets in step 4, check the action is not right.\n+\n+Test Case 4: MAC_QINQ_IPV4_TCP\n+------------------------------\n+The test case enable QINQ switch filter for IPv4 + TCP in non-pipeline mode, and port can support as dst MAC + outer VLAN id + inner VLAN id + IPv4 + TCP.\n+\n+Test Steps\n+..........\n+1. Validate a rule::\n+   \n+     testpmd> flow validate 0 ingress pattern eth dst is <dst mac> / vlan tci is <outer vlan tci> / vlan tci is <inner vlan tci> / ipv4 / tcp src is <sport> dst is <dport> / end actions rss queues 4 5 end / end\n+\n+   Get the message::\n+\n+     Flow rule validated\n+\n+2. Create a rule and list rules::\n+\n+     testpmd> flow create 0 ingress pattern eth dst is <dst mac> / vlan tci is <outer vlan tci> / vlan tci is <inner vlan tci> / ipv4 / tcp src is <sport> dst is <dport> / end actions rss queues 4 5 end / end\n+     \n+   Get the message::\n+\n+     Flow rule #0 created\n+   \n+3. Check the flow list::\n+\n+     testpmd> flow list 0\n+\n+   ID      Group   Prio    Attr    Rule\n+   0       0       0       i--     ETH VLAN VLAN IPV4 TCP => RSS\n+\n+4. Send matched packet in scapy on tester, check the DUT received this packet and the action is right.\n+\n+Tester::\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IP()/TCP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+DUT::\n+\n+    testpmd> port 0/queue 5: received 1 packets\n+  src=00:00:00:00:00:00 - dst=00:11:22:33:44:55 - type=0x8100 - length=142 - nb_segs=1 - RSS hash=0xddc4fdb3 - RSS queue=0x5 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_TCP  - sw ptype: L2_ETHER_VLAN INNER_L2_ETHER_VLAN INNER_L3_IPV4 INNER_L4_TCP  - l2_len=18 - inner_l2_len=4 - inner_l3_len=20 - inner_l4_len=20 - Receive queue=0x5\n+  ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD\n+\n+5. Send mismatched packet in scapy on tester, check the DUT received this packet and the action is not right.\n+\n+Tester::\n+\n+    >>> sendp([Ether(dst=\"<dst mac change inputset>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IP()/TCP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci change inputset>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IP()/TCP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci change inputset>,type=0x0800)/IP()/TCP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IP()/TCP(sport=<sport>,dport=<dport change inputset>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+6. Destroy a rule and list rules::\n+\n+     testpmd> flow destroy 0 rule 0\n+  \n+   Get the message::\n+\n+     Flow rule #0 destroyed\n+\n+7. Check the flow list::\n+\n+     testpmd> flow list 0\n+\n+   Check the rule not exists in the list.\n+   Send matched packets in step 4, check the action is not right.\n+\n+#Pipeline mode\n+\n+Test Case 5: MAC_QINQ_IPV6_UDP\n+------------------------------\n+The test case enable QINQ switch filter for IPv6 + UDP in pipeline mode, and port can support as dst MAC + outer VLAN id + inner VLAN id + IPv6 + UDP.\n+\n+Test Steps\n+..........\n+1. Validate a rule::\n+   \n+     testpmd> flow validate 0 priority 0 ingress pattern eth dst is <dst mac> / vlan tci is <outer vlan tci> / vlan tci is <inner vlan tci> / ipv6 dst is <ipv6 dst> / udp src is <sport> dst is <dport> / end actions drop / end\n+\n+   Get the message::\n+\n+     Flow rule validated\n+\n+2. Create a rule and list rules::\n+\n+     testpmd> flow create 0 priority 0 ingress pattern eth dst is <dst mac> / vlan tci is <outer vlan tci> / vlan tci is <inner vlan tci> / ipv6 dst is <ipv6 dst> / udp src is <sport> dst is <dport> / end actions drop / end\n+\n+   Get the message::\n+\n+     Flow rule #0 created\n+   \n+3. Check the flow list::\n+\n+     testpmd> flow list 0\n+\n+   ID      Group   Prio    Attr    Rule\n+   0       0       0       i--     ETH VLAN VLAN IPV6 UDP => DROP\n+\n+4. Send matched packet in scapy on tester, check the DUT received this packet and the action is right.\n+\n+Tester::\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IPv6(dst=\"<ipv6 dst>\")/UDP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+DUT::\n+\n+5. Send mismatched packet in scapy on tester, check the DUT received this packet and the action is not right.\n+\n+    >>> sendp([Ether(dst=\"<dst mac change inputset>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IPv6(dst=\"<ipv6 dst>\")/UDP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+    \n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci change inputset>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IPv6(dst=\"<ipv6 dst>\")/UDP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci change inputset>,type=0x0800)/IPv6(dst=\"<ipv6 dst>\")/UDP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IPv6(dst=\"<ipv6 dst change inputset>\")/UDP(sport=<sport>,dport=<dport change inputset>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+6. Destroy a rule and list rules::\n+\n+     testpmd> flow destroy 0 rule 0\n+  \n+   Get the message::\n+\n+     Flow rule #0 destroyed\n+\n+7. Check the flow list::\n+\n+     testpmd> flow list 0\n+\n+   Check the rule not exists in the list.\n+   Send matched packets in step 4, check the action is not right.\n+\n+Test Case 6: MAC_QINQ_IPV6_TCP\n+------------------------------\n+The test case enable QINQ switch filter for IPv6 + TCP in pipeline mode, and port can support as dst MAC + outer VLAN id + inner VLAN id + IPv6 + TCP.\n+\n+Test Steps\n+..........\n+1. Validate a rule::\n+   \n+     testpmd> flow validate 0 priority 0 ingress pattern eth dst is <dst mac> / vlan tci is <outer vlan tci> / vlan tci is <inner vlan tci> / ipv6 dst is <ipv6 dst> / tcp src is <sport> dst is <dport> / end actions queue index 7 / end\n+\n+   Get the message::\n+\n+     Flow rule validated\n+\n+2. Create a rule and list rules::\n+\n+     testpmd> flow create 0 priority 0 ingress pattern eth dst is <dst mac> / vlan tci is <outer vlan tci> / vlan tci is <inner vlan tci> / ipv6 dst is <ipv6 dst> / tcp src is <sport> dst is <dport> / end actions queue index 7 / end\n+\n+   Get the message::\n+\n+     Flow rule #0 created\n+   \n+3. Check the flow list::\n+\n+     testpmd> flow list 0\n+\n+   ID      Group   Prio    Attr    Rule\n+   0       0       0       i--     ETH VLAN VLAN IPV6 TCP => QUEUE\n+\n+4. Send matched packet in scapy on tester, check the DUT received this packet and the action is right.\n+\n+Tester::\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IPv6(dst=\"<ipv6 dst>\")/TCP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+DUT::\n+\n+    testpmd> port 0/queue 7: received 1 packets\n+  src=00:00:00:00:00:00 - dst=00:11:22:33:44:55 - type=0x8100 - length=162 - nb_segs=1 - RSS hash=0xc5dfbe3f - RSS queue=0x7 - hw ptype: L2_ETHER L3_IPV6_EXT_UNKNOWN L4_TCP  - sw ptype: L2_ETHER_VLAN INNER_L2_ETHER_VLAN INNER_L3_IPV6 INNER_L4_TCP  - l2_len=18 - inner_l2_len=4 - inner_l3_len=40 - inner_l4_len=20 - Receive queue=0x7\n+  ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD\n+\n+5. Send mismatched packet in scapy on tester, check the DUT received this packet and the action is not right.\n+\n+Tester::\n+\n+    >>> sendp([Ether(dst=\"<dst mac change inputset>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IPv6(dst=\"<ipv6 dst>\")/TCP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+    \n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci change inputset>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IPv6(dst=\"<ipv6 dst>\")/TCP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci change inputset>,type=0x0800)/IPv6(dst=\"<ipv6 dst>\")/TCP(sport=<sport>,dport=<dport>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+    >>> sendp([Ether(dst=\"<dst mac>\",type=0x8100)/Dot1Q(vlan=<outer vlan tci>,type=0x8100)/Dot1Q(vlan=0x<inner vlan tci>,type=0x0800)/IPv6(dst=\"<ipv6 dst change inputset>\")/TCP(sport=<sport>,dport=<dport change inputset>)/(\"X\"*80)],iface=\"<tester interface>\")\n+\n+6. Destroy a rule and list rules::\n+\n+     testpmd> flow destroy 0 rule 0\n+  \n+   Get the message::\n+\n+     Flow rule #0 destroyed\n+\n+7. Check the flow list::\n+\n+     testpmd> flow list 0\n+\n+   Check the rule not exists in the list.\n+   Send matched packets in step 4, check the action is not right.\n+\n+\n",
    "prefixes": [
        "V5"
    ]
}