Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/107134/?format=api
http://patches.dpdk.org/api/patches/107134/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/20220209220127.576685-1-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": "<20220209220127.576685-1-yaqi.tang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20220209220127.576685-1-yaqi.tang@intel.com", "date": "2022-02-09T22:01:27", "name": "[V7] test_plans/cvl_switch_filter: add test plan for cvl qinq switch filter support l4", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "82c42bf47db46d206bf84d90412ec69d3a6f4bec", "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/20220209220127.576685-1-yaqi.tang@intel.com/mbox/", "series": [ { "id": 21569, "url": "http://patches.dpdk.org/api/series/21569/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=21569", "date": "2022-02-09T22:01:27", "name": "[V7] test_plans/cvl_switch_filter: add test plan for cvl qinq switch filter support l4", "version": 7, "mbox": "http://patches.dpdk.org/series/21569/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/107134/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/107134/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 E7DE4A04A5;\n\tWed, 9 Feb 2022 15:03:26 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E0E8D41157;\n\tWed, 9 Feb 2022 15:03:26 +0100 (CET)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id 2248341143\n for <dts@dpdk.org>; Wed, 9 Feb 2022 15:03:20 +0100 (CET)", "from orsmga004.jf.intel.com ([10.7.209.38])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Feb 2022 06:03:19 -0800", "from dpdk-yaqi.sh.intel.com ([10.67.119.205])\n by orsmga004.jf.intel.com with ESMTP; 09 Feb 2022 06:03:17 -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=1644415404; x=1675951404;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=zRvvn4d+iYFeqRu75iZYCgiueqYcNXL7dhKNe2NNNEg=;\n b=SVkOgI2t2/Rj6xgZJ2C5miHQJTb5zIHE7lJKlhSp9ErzuHZBdI/WwzWg\n lQBwTFJrHgEooMW7twi3eQhtQfVRWXefUidYR52KaLY5GHnTB2ck2dMD0\n EVqcrAF4PxldsctOME888LSEzQUpT5aG9fScGUtl0LM0ZqfeXgQkIQB4O\n JJ0QPq+HeOgeAPfRSj9UjpJc5nhHq0roGeiOJMoOElOkkBF1QVRojRagN\n +PkAKfgjY/NXL2ocBP0Dbwva9qKCrJFqzNzrZClHANWkQYjejwo7hjSor\n rgx0+F74do4oa6gCZZArp1FUMhauwa2Dmx/bfnuxxXr8Tb0QbCDvANuzq A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10252\"; a=\"312503958\"", "E=Sophos;i=\"5.88,355,1635231600\"; d=\"scan'208\";a=\"312503958\"", "E=Sophos;i=\"5.88,355,1635231600\"; d=\"scan'208\";a=\"633225843\"" ], "X-ExtLoop1": "1", "From": "Yaqi Tang <yaqi.tang@intel.com>", "To": "dts@dpdk.org", "Cc": "Yaqi Tang <yaqi.tang@intel.com>", "Subject": "[dts][PATCH V7] test_plans/cvl_switch_filter: add test plan for cvl\n qinq switch filter support l4", "Date": "Wed, 9 Feb 2022 22:01:27 +0000", "Message-Id": "<20220209220127.576685-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 | 439 +++++++++++++++++++++\n 1 file changed, 439 insertions(+)", "diff": "diff --git a/test_plans/cvl_switch_filter_test_plan.rst b/test_plans/cvl_switch_filter_test_plan.rst\nindex 770af996..31ed564e 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,442 @@ 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+\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+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": [ "V7" ] }{ "id": 107134, "url": "