From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 336F5A0032; Fri, 14 Jan 2022 08:43:57 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F367242764; Fri, 14 Jan 2022 08:43:56 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 2C42840DDD for ; Fri, 14 Jan 2022 08:43:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642146234; x=1673682234; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=J2WIcV5EruyQq5q69VCpFah34wuTnDyLHroHSPD0000=; b=WeTr/8jzE+VM/zTgXNXxpbTQxSqyscLIEhJnq/x69rBJolS7DZnjEB92 dHZ76YWBNOHXOaxOjnpacVqxkJmtPdtjGglWiAKLzvMqHtHEwxN0TDD/3 LPs0sgZV5PKtrA17y1gc4LKFtB58b0hIyKU08SYYE8z1lLtfQ7jIA7TLC 3AGbrbPumZU/B7jEFH0/a2dWgfymtGpLO6jxhtLL4kV6G1WrQY6Qbti2a 2bV1+uFAkAOxpaYNLX5nGs+uyzrVFLJWZfGlN5EENFQhwTjGTz8Hd6RqW Kboz+15ZuYgbwZc3FxuCBG5eqLXh6S+s11VftWaprzC7XiJ/vPyv/RMSp w==; X-IronPort-AV: E=McAfee;i="6200,9189,10226"; a="243015976" X-IronPort-AV: E=Sophos;i="5.88,287,1635231600"; d="scan'208";a="243015976" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2022 23:43:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,287,1635231600"; d="scan'208";a="692114580" Received: from dpdk-qifu-cxl.sh.intel.com ([10.67.118.191]) by orsmga005.jf.intel.com with ESMTP; 13 Jan 2022 23:43:50 -0800 From: Qi Fu To: dts@dpdk.org Cc: Qi Fu Subject: [dts][PATCH V2]test_plans: add test plan for cvl flow priority Date: Sat, 15 Jan 2022 00:15:00 +0800 Message-Id: <20220114161500.836323-1-qi.fu@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org add test plan for cvl flow priority in PF. Signed-off-by: Qi Fu --- test_plans/cvl_flow_priority_test_plan.rst | 757 +++++++++++++++++++++ test_plans/index.rst | 1 + 2 files changed, 758 insertions(+) create mode 100644 test_plans/cvl_flow_priority_test_plan.rst diff --git a/test_plans/cvl_flow_priority_test_plan.rst b/test_plans/cvl_fl= ow_priority_test_plan.rst new file mode 100644 index 00000000..fa034659 --- /dev/null +++ b/test_plans/cvl_flow_priority_test_plan.rst @@ -0,0 +1,757 @@ +.. Copyright (c) <2021>, Intel Corporation=0D + All rights reserved.=0D +=0D + Redistribution and use in source and binary forms, with or without=0D + modification, are permitted provided that the following conditions=0D + are met:=0D +=0D + - Redistributions of source code must retain the above copyright=0D + notice, this list of conditions and the following disclaimer.=0D +=0D + - Redistributions in binary form must reproduce the above copyright=0D + notice, this list of conditions and the following disclaimer in=0D + the documentation and/or other materials provided with the=0D + distribution.=0D +=0D + - Neither the name of Intel Corporation nor the names of its=0D + contributors may be used to endorse or promote products derived=0D + from this software without specific prior written permission.=0D +=0D + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS=0D + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT=0D + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS=0D + FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE=0D + COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,=0D + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES=0D + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR=0D + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)=0D + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,=0D + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)=0D + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED=0D + OF THE POSSIBILITY OF SUCH DAMAGE.=0D +=0D +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=0D +CVL Support Flow Priority in PF=0D +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=0D +=0D +Description=0D +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0D +In CVL PF rte_flow distribution mode(non-pipeline mode), a flow with prior= ity =3D 1 will be programmed into switch filter,=0D +a flow with priority =3D 0 will be programmed into switch first then fdir.= =0D +Currently only support priority 0 and 1. 1 means low priority and 0 means = high priority.=0D +When looking up rule table, matched pkt will hit the high priority rule fi= rstly,=0D +it will hit the low priority rule only when there is no high priority rule= exist.=0D +=0D +=0D +Prerequisites=0D +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0D +=0D +Topology=0D +--------=0D +1node/1nic/2port/fwd=0D +2node/1nic/1port/loopback=0D +=0D +Hardware=0D +--------=0D +Supportted NICs: columbiaville_25g/columbiaville_100g=0D +=0D +Software=0D +--------=0D +DPDK: http://dpdk.org/git/dpdk=0D +Scapy: http://www.secdev.org/projects/scapy/=0D +=0D +General Set Up=0D +--------------=0D +1. Compile DPDK::=0D +=0D + # CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib --defau= lt-library=3Dstatic =0D + # ninja -C -j 110=0D +=0D +2. Get the pci device id and interface of DUT and tester. =0D + For example, 0000:18:00.0 and 0000:18:00.1 is pci device id,=0D + ens785f0 and ens785f1 is interface::=0D +=0D + # ./usertools/dpdk-devbind.py -s=0D +=0D + 0000:18:00.0 'Device 159b' if=3Dens785f0 drv=3Dice unused=3Dvfio-pci=0D + 0000:18:00.1 'Device 159b' if=3Dens785f1 drv=3Dice unused=3Dvfio-pci=0D +=0D +3. Bind the DUT port to dpdk::=0D +=0D + # ./usertools/dpdk-devbind.py -b vfio-pci =0D +=0D +4. Launch the userland ``testpmd`` application on DUT as follows and ::=0D +=0D + /app/dpdk-testpmd -- -i --rxq=3D --txq=3D=0D + testpmd> set fwd rxonly=0D + testpmd> set verbose 1=0D + testpmd> rx_vxlan_port add 4789 0=0D + testpmd> start=0D +=0D +..note:: =0D +=0D + For , you can use "-c 0xf -n 1", you can also refer to te= stpmd doc for other setings.=0D +=0D +=0D +Test Case=0D +=3D=3D=3D=3D=3D=3D=3D=3D=3D=0D +=0D +Common Steps=0D +------------=0D +1. validate rules: two rules have same pattern, input set but different pr= iority and actions.=0D +2. create rules and list rules.=0D +3. send matched packets, check the action hiting the rule with priority 0.= =0D +4. send mismatched packets, check the packets will not hit any rules.=0D +5. destroy rule with priority 0, list rules.=0D +6. send matched packets, check the action hiting the rule with priority 1.= =0D +7. send mismatched packets, check the packets will not hit any rules.=0D +8. recreate rules which priority is 0, list rule.=0D +9. destroy rule with priority 1, list rules.=0D +10. send matched packets, check the action hiting the rule with priority 0= .=0D +11. send mismatched packets, check the packets will not hit any rules.=0D +12. destroy rule with priority 0, list rules.=0D +13. send matched packets, check the packets will not hit any rules.=0D +=0D +All the packets in this test plan use below settings:=0D +dst mac: 68:05:ca:8d:ed:a8=0D +dst mac change inputset: 68:05:ca:8d:ed:a3=0D +ipv4 src: 192.168.0.1=0D +ipv4 dst: 192.168.0.2=0D +ipv4 src change inputset: 192.168.0.3=0D +ipv4 dst change inputset: 192.168.0.4=0D +inner ipv4 src: 192.168.1.1=0D +inner ipv4 src change inputset: 192.168.1.2=0D +inner ipv4 dst: 192.168.1.3=0D +inner ipv4 dst change inputset: 192.168.1.4=0D +ipv6 src: CDCD:910A:2222:5498:8475:1111:3900:1536=0D +ipv6 dst: CDCD:910A:2222:5498:8475:1111:3900:2020=0D +ipv6 src change inputset: CDCD:910A:2222:5498:8475:1111:3900:1538=0D +ipv6 dst change inputset: CDCD:910A:2222:5498:8475:1111:3900:2028=0D +tos: 4=0D +tos change inputset: 5=0D +ttl: 2=0D +ttl change inputset: 9=0D +sport: 23=0D +sport change inputset: 33=0D +dport: 24=0D +dport change inputset: 34=0D +tc: 3=0D +tc change inputset: 7=0D +tni: 0x8=0D +tni change inputset: 0x1=0D +ethertype: 0x8863=0D +ethertype change inputset: 0x8864=0D +tci: 1=0D +tci change inputset: 2=0D +seid: 3=0D +seid change inputset: 4=0D +ipv4 proto_id: 0x0021=0D +ipv6 proto_id: 0x0057=0D +LCP proto_id: 0xc021=0D +IPCP proto_id: 0x8021=0D +=0D +Support Pattern and Input Set=0D +-----------------------------=0D +.. table::=0D +=0D + +---------------------+-------------------------------+---------------= ----------------------------+=0D + | Packet Types | Pattern | input set (non= -pipeline mode) |=0D + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=0D + | | MAC_IPV4_FRAG | N/A = |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_IPV4_PAY | [Source IP], [= Dest IP],[TOS],[TTL] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_IPV4_UDP_PAY | [Source IP], [= Dest IP],[TOS],[TTL], |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | IPv4/IPv6 + TCP/UDP | MAC_IPV4_TCP | [Source IP], [= Dest IP],[TOS],[TTL], |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_IPV6 | [Source IP], [= Dest IP] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_IPV6_UDP_PAY | [Source IP], [= Dest IP],[TOS],[TTL], |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_IPV6_TCP | [Source IP], [= Dest IP],[TOS],[TTL], |=0D + +---------------------+-------------------------------+---------------= ----------------------------+=0D + | | MAC_IPV4_TUN_IPV4_FRAG | [Out Dest IP],= [VNI/GRE_KEY], |=0D + | | | [Inner Source = IP], [Inner Dest IP] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_IPV4_TUN_IPV4_PAY | [Out Dest IP],= [VNI/GRE_KEY], |=0D + | | | [Inner Source = IP], [Inner Dest IP] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_IPV4_TUN_IPV4_UDP_PAY | [Out Dest IP],= [VNI/GRE_KEY], |=0D + | | | [Inner Source = IP], [Inner Dest IP], |=0D + | | | [Inner Source = Port], [Inner Dest Port] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_IPV4_TUN_IPV4_TCP | [Out Dest IP],= [VNI/GRE_KEY], |=0D + | | | [Inner Source = IP], [Inner Dest IP], |=0D + | | | [Inner Source = Port], [Inner Dest Port] |=0D + | tunnel +-------------------------------+---------------= ----------------------------+=0D + | | MAC_IPV4_TUN_MAC_IPV4_FRAG | [Out Dest IP],= [VNI/GRE_KEY], |=0D + | | | [Inner Dest MA= C], |=0D + | | | [Inner Source = IP], [Inner Dest IP] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_IPV4_TUN_MAC_IPV4_PAY | [Out Dest IP],= [VNI/GRE_KEY], |=0D + | | | [Inner Dest MA= C], |=0D + | | | [Inner Source = IP], [Inner Dest IP] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_IPV4_TUN_MAC_IPV4_UDP_PAY | [Out Dest IP],= [VNI/GRE_KEY], |=0D + | | | [Inner Dest MA= C], |=0D + | | | [Inner Source = IP],[Inner Dest IP], |=0D + | | | [Inner Source = Port], [Inner Dest Port] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_IPV4_TUN_MAC_IPV4_TCP | [Out Dest IP],= [VNI/GRE_KEY], |=0D + | | | [Inner Dest MA= C], |=0D + | | | [Inner Source = IP], [Inner Dest IP], |=0D + | | | [Inner Source = Port], [Inner Dest Port] |=0D + +---------------------+-------------------------------+---------------= ----------------------------+=0D + | ethertype filter | ethertype filter_PPPOED | [Ether type] = |=0D + +---------------------+-------------------------------+---------------= ----------------------------+=0D + | | MAC_VLAN_PPPOE_IPV4_PAY | [Dest MAC], [V= LAN], [seid], |=0D + | | _session_id_proto_id | [pppoe_proto_i= d] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_VLAN_PPPOE_IPV6_PAY | [Dest MAC], [VL= AN], [seid], |=0D + | | _session_id_proto_id | [pppoe_proto_i= d] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_PPPOE_IPV4_PAY_session_id | [Dest MAC], [s= eid], [pppoe_proto_id] |=0D + | | _proto_id | = |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_PPPOE_IPV6_PAY_session_id | [Dest MAC], [s= eid], [pppoe_proto_id] |=0D + | | _proto_id | = |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_PPPOE_IPV4_PAY_IP_address | [Source IP], [= Dest IP] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_PPPOE_IPV4_UDP_PAY | [Source IP], [= Dest IP], |=0D + | | | [Source Port],= [Dest Port] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_PPPOE_IPV4_UDP_PAY | [Source IP], [= Dest IP] |=0D + | | _non_src_dst_port | = |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_PPPOE_IPV4_TCP_PAY | [Source IP], [= Dest IP], |=0D + | | | [Source Port],= [Dest Port] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_PPPOE_IPV4_TCP_PAY | [Source IP], [= Dest IP] |=0D + | | _non_src_dst_port | = |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_PPPOE_IPV6_PAY_IP_address | [Source IP], [= Dest IP] |=0D + | PPPOES +-------------------------------+---------------= ----------------------------+=0D + | | MAC_PPPOE_IPV6_UDP_PAY | [Source IP], [= Dest IP], |=0D + | | | [Source Port],= [Dest Port] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_PPPOE_IPV6_UDP_PAY | [Source IP], [= Dest IP] |=0D + | | _non_src_dst_port | = |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_PPPOE_IPV6_TCP_PAY | [Source IP], [= Dest IP], |=0D + | | | [Source Port],= [Dest Port] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_PPPOE_IPV6_TCP_PAY | [Source IP], [= Dest IP], |=0D + | | _non_src_dst_port | = |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_VLAN_PPPOE_IPV4_PAY | [VLAN], [Sourc= e IP], [Dest IP] |=0D + | | _IP_address | = |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_VLAN_PPPOE_IPV4_UDP_PAY | [VLAN], [Sourc= e IP], [Dest IP] |=0D + | | | [Source Port],= [Dest Port] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_VLAN_PPPOE_IPV4_UDP_PAY | [VLAN], [Sourc= e IP], [Dest IP] |=0D + | | _non_src_dst_port | = |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_VLAN_PPPOE_IPV4_TCP_PAY | [VLAN], [Sourc= e IP], [Dest IP] |=0D + | | | [Source Port],= [Dest Port] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_VLAN_PPPOE_IPV4_TCP_PAY | [VLAN], [Sourc= e IP], [Dest IP] |=0D + | | _non_src_dst_port | = |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_VLAN_PPPOE_IPV6_PAY | [VLAN], [Sourc= e IP], [Dest IP] |=0D + | | _IP_address | = |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_VLAN_PPPOE_IPV6_UDP_PAY | [VLAN], [Sourc= e IP], [Dest IP] |=0D + | | | [Source Port],= [Dest Port] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_VLAN_PPPOE_IPV6_UDP_PAY | [VLAN], [Sourc= e IP], [Dest IP] |=0D + | | _non_src_dst_port | = |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_VLAN_PPPOE_IPV6_TCP_PAY | [VLAN], [Sourc= e IP], [Dest IP] |=0D + | | | [Source Port],= [Dest Port] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_VLAN_PPPOE_IPV6_TCP_PAY | [VLAN], [Sourc= e IP], [Dest IP] |=0D + | | _non_src_dst_port | = |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_PPPOE_LCP_PAY | [Dest MAC], [s= eid], [pppoe_proto_id] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_PPPOE_IPCP_PAY | [Dest MAC], [s= eid], [pppoe_proto_id] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_VLAN_PPPOE_LCP_PAY | [Dest MAC], [V= LAN], [seid], |=0D + | | | [pppoe_proto_i= d] |=0D + | +-------------------------------+---------------= ----------------------------+=0D + | | MAC_VLAN_PPPOE_IPCP_PAY | [Dest MAC], [V= LAN], [seid], |=0D + | | | [pppoe_proto_i= d] |=0D + +---------------------+-------------------------------+---------------= ----------------------------+=0D +=0D +..note::=0D +=0D + the basic switch function of supported pattern is covered by cvl_switc= h_filter_test_plan.rst and cvl_switch_filter_pppoe_test_plan.rst.=0D + this test plan is designed to check the flow priority in switch, so we= only select some patterns not all matrix in test plan.=0D +=0D +=0D +Test Case 1: MAC_IPV4_PAY=0D +-------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth dst is = / ipv4 src is dst is tos is ttl is / end= actions queue index 1 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth dst is = / ipv4 src is dst is tos is ttl is / end= actions queue index 4 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether(dst=3D"")/IP(src=3D"",dst=3D"",tos=3D,ttl=3D)/("X"*480)], iface=3D"")=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether(dst=3D"")/IP(src=3D"= ",dst=3D"",tos=3D,ttl=3D)/("X"*480)], iface=3D"")=0D + >>> sendp([Ether(dst=3D"")/IP(src=3D"= ",dst=3D"",tos=3D,ttl=3D)/("X"*480)], iface=3D"")=0D + >>> sendp([Ether(dst=3D"")/IP(src=3D"",dst=3D"",tos=3D,ttl=3D)/("X"*480)], iface=3D"")=0D + >>> sendp([Ether(dst=3D"")/IP(src=3D"",dst=3D"",tos=3D,ttl=3D)/("X"*480)], iface=3D"")=0D + >>> sendp([Ether(dst=3D"")/IP(src=3D"",dst=3D"",tos=3D,ttl=3D)/("X"*480)], iface=3D"")=0D +=0D +=0D +Test Case 2: MAC_IPV4_UDP_PAY=0D +-----------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is tos is / udp src is dst is = / end actions rss queues 4 5 end / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / ipv4 src is dst is tos is / udp src is dst is = / end actions queue index 2 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether()/IP(src=3D"",dst=3D"",tos=3D)= /UDP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D"",count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether()/IP(src=3D"",dst=3D"",tos=3D)/UDP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D= "")=0D + >>> sendp([Ether()/IP(src=3D"",dst=3D"",tos=3D)/UDP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D= "")=0D + >>> sendp([Ether()/IP(src=3D"",dst=3D"",tos=3D)/UDP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D= "")=0D + >>> sendp([Ether()/IP(src=3D"",dst=3D"",tos=3D)= /UDP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D= "")=0D + >>> sendp([Ether()/IP(src=3D"",dst=3D"",tos=3D)= /UDP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D= "")=0D +=0D +=0D +Test Case 3: MAC_IPV6_PAY=0D +-------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth / ipv6 src is dst is / end actions rss queues 4 5 end / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / ipv6 src is dst is / end actions queue index 8 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether()/IPv6(src=3D"", dst=3D"")/("X"*480= )], iface=3D"")=0D + >>> sendp([Ether()/IPv6(src=3D"", dst=3D"")/IPv6ExtH= drFragment()/("X"*480)], iface=3D"")=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether()/IPv6(src=3D"", dst=3D"")/("X"*480)], iface=3D"")=0D + >>> sendp([Ether()/IPv6(src=3D"", dst=3D"")/("X"*480)], iface=3D"")=0D + >>> sendp([Ether()/IPv6(src=3D"", dst=3D"")/IPv6ExtHdrFragment()/("X"*480)], iface=3D"")=0D + >>> sendp([Ether()/IPv6(src=3D"", dst=3D"")/IPv6ExtHdrFragment()/("X"*480)], iface=3D"")=0D +=0D +=0D +Test Case 4: MAC_IPV6_TCP=0D +-------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth / ipv6 dst is tc is / tcp src is dst is / end actions rss q= ueues 4 5 end / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / ipv6 dst is tc is / tcp src is dst is / end actions queue= index 3 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether()/IPv6(src=3D"",dst=3D"",tc=3D)= /TCP(sport=3D,dport=3D23)/Raw("x"*80)],iface=3D"",= count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether()/IPv6(src=3D"",dst=3D"",tc=3D)/TCP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D= "",count=3D1)=0D + >>> sendp([Ether()/IPv6(src=3D"",dst=3D"",tc=3D)/TCP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D= "",count=3D1)=0D + >>> sendp([Ether()/IPv6(src=3D"",dst=3D"",tc=3D)= /TCP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D= "",count=3D1)=0D + >>> sendp([Ether()/IPv6(src=3D"",dst=3D"",tc=3D)= /TCP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D= "",count=3D1)=0D +=0D +=0D +Test Case 5: MAC_IPV4_VXLAN_IPV4_FRAG=0D +-------------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 / udp / v= xlan / eth / ipv4 src is dst is / end actions rss que= ues 2 3 end / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / ipv4 / udp / v= xlan / eth / ipv4 src is dst is / end actions queue i= ndex 5 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=3D"", dst= =3D"",frag=3D5)/Raw("x"*80)],iface=3D"",count= =3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=3D"", dst=3D"",frag=3D5)/Raw("x"*80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=3D"", dst= =3D"",frag=3D5)/Raw("x"*80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=3D"", dst= =3D"",frag=3D5)/Raw("x"*80)],iface=3D"",count= =3D1)=0D +=0D +=0D +Test Case 6: MAC_IPV4_VXLAN_IPV4_PAY=0D +------------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 / udp / v= xlan / eth / ipv4 src is dst is / end actions queue i= ndex 5 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / ipv4 / udp / v= xlan / eth / ipv4 src is dst is / end actions rss que= ues 2 3 end / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=3D"", dst= =3D"")/Raw("x"*80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=3D"", dst= =3D"")/TCP()/Raw("x"*80)],iface=3D"",count=3D1)= =0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=3D"", dst=3D"")/Raw("x"*80)],iface=3D"",= count=3D1)=0D + >>> sendp([Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=3D"", dst= =3D"")/Raw("x"*80)],iface=3D"",= count=3D1)=0D + >>> sendp([Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=3D"", dst= =3D"")/Raw("x"*80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=3D"", dst= =3D"")/Raw("x"*80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=3D"", dst=3D"")/TCP()/Raw("x"*80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=3D"", dst= =3D"")/TCP()/Raw("x"*80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=3D"", dst= =3D"")/TCP()/Raw("x"*80)],iface=3D"",count=3D1)= =0D +=0D +=0D +Test Case 7: MAC_IPV4_NVGRE_MAC_IPV4_UDP_PAY=0D +--------------------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 dst is / nvgre tni is / eth dst is / ipv4 src is dst is / udp src is dst is / end = actions rss queues 2 3 end / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / ipv4 dst is / nvgre tni is / eth dst is / ipv4 src is dst is / udp src is dst is / end = actions queue index 4 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst= =3D"")/IP(src=3D"", dst=3D"")/UDP(= sport=3D,dport=3D)/Raw("x"*80)], iface=3D""= , count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst=3D"")/IP(src=3D"", dst=3D"")/UDP(sport=3D,dport=3D)/Raw("x"*80)], iface=3D"", count=3D1)=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst=3D"")/IP(src=3D"", dst=3D"")/UDP(sport=3D,dport=3D)/Raw("x"*80)], iface=3D"", count=3D1)=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst= =3D"")/IP(src=3D"", dst=3D"")/UDP(sport=3D,dport=3D)/Raw("x"*80)], iface=3D"", count=3D1)=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst= =3D"")/IP(src=3D"", dst=3D"")/UDP(sport=3D,dport=3D)/Raw("x"*80)], iface=3D"", count=3D1)=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst= =3D"")/IP(src=3D"", dst=3D"")/UDP(sport=3D,dport=3D)/Raw("x"*80)], iface=3D"", count=3D1)=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst= =3D"")/IP(src=3D"", dst=3D"")/UDP(= sport=3D,dport=3D)/Raw("x"*80)], iface=3D"", count=3D1)=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst= =3D"")/IP(src=3D"", dst=3D"")/UDP(= sport=3D,dport=3D)/Raw("x"*80)], iface=3D"", count=3D1)=0D +=0D +=0D +Test Case 8: MAC_IPV4_NVGRE_MAC_IPV4_TCP=0D +----------------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 dst is / nvgre tni is / eth dst is / ipv4 src is dst is / tcp src is dst is / end= actions queue index 5 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / ipv4 dst is / nvgre tni is / eth dst is / ipv4 src is dst is / tcp src is dst is / end= actions rss queues 2 3 end / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst= =3D"")/IP(src=3D"", dst=3D"")/TCP(= sport=3D,dport=3D)/Raw("x"*80)],iface=3D"",= count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst=3D"")/IP(src=3D"", dst=3D"")/TCP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst=3D"")/IP(src=3D"", dst=3D"")/TCP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst= =3D"")/IP(src=3D"", dst=3D"")/TCP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst= =3D"")/IP(src=3D"", dst=3D"")/TCP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst= =3D"")/IP(src=3D"", dst=3D"")/TCP(sport=3D,dport=3D)/Raw("x"*80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst= =3D"")/IP(src=3D"", dst=3D"")/TCP(= sport=3D,dport=3D)/Raw("x"*80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether()/IP(dst=3D"")/NVGRE(TNI=3D)/Ether(dst= =3D"")/IP(src=3D"2", dst=3D"")/TCP= (sport=3D,dport=3D)/Raw("x"*80)],iface=3D"",count=3D1)=0D +=0D +=0D +Test Case 9: ethertype filter_PPPOED=0D +------------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth type is / end actions queue index 4 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth type is / end actions queue index 2 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether(dst=3D"", type=3D)/Raw("x" *80)],if= ace=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"")/PPPoED()/Raw("x" *80)],iface=3D"",count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether(dst=3D"", type=3D)/= Raw("x" *80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"")/PPPoE()/Raw("x" *80)],iface=3D"",count=3D1)=0D +=0D +=0D +Test Case 10: MAC_VLAN_PPPOE_IPV4_PAY_session_id_proto_id=0D +---------------------------------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth dst is = / vlan tci is / pppoes seid is / pppoe_proto_id is / end actions queue index 1 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth dst is = / vlan tci is / pppoes seid is / pppoe_proto_id is / end actions queue index 2 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP()/Raw("x"*= 80)],iface=3D"",count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(= vlan=3D,type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IPv6()/R= aw("x" * 80)],iface=3D"",count=3D1)=0D +=0D +=0D +Test Case 11: MAC_VLAN_PPPOE_IPV6_PAY_session_id_proto_id=0D +---------------------------------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth dst is = / vlan tci is / pppoes seid is / pppoe_proto_id is / end actions queue index 1 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth dst is = / vlan tci is / pppoes seid is / pppoe_proto_id is / end actions queue index 2 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IPv6()/R= aw("x" * 80)],iface=3D"",count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(= vlan=3D,type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IPv6()/Raw("x" * 80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IPv6()/Raw("x" * 80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IPv6()/Raw("x" * 80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP()/Raw= ("x" * 80)],iface=3D"",count=3D1)=0D +=0D +=0D +Test Case 12: MAC_PPPOE_IPV4_PAY_IP_address=0D +-------------------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth / pppoes / ipv4 = src is dst is / end actions queue index 1 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / pppoes / ipv4 = src is dst is / end actions queue index 2 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(sessionid=3D3)/P= PP(proto=3D0x0021)/IP(src=3D"", dst=3D"")/Raw("x"*80)],= iface=3D"",count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(sessionid=3D3)/P= PP(proto=3D0x0021)/IP(src=3D"", dst=3D"= ")/Raw("x"*80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(sessionid=3D3)/P= PP(proto=3D0x0021)/IP(src=3D"", dst=3D"= ")/Raw("x"*80)],iface=3D"",count=3D1)=0D +=0D +=0D +Test Case 13: MAC_PPPOE_IPV6_UDP_PAY=0D +------------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth / pppoes / ipv6 = dst is / udp src is dst is / end actions queue i= ndex 1 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / pppoes / ipv6 = dst is / udp src is dst is / end actions queue i= ndex 2 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IPv6(src=3D"", dst=3D"= ")/UDP(sport=3D,dport=3D)/Raw("x" * 80)],iface=3D"",count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IPv6(src=3D"", dst=3D"")/UDP(sport=3D,dport=3D)/Raw("x" * 80)],ifac= e=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IPv6(src=3D"", dst=3D"= ")/UDP(sport=3D,dport=3D)/Raw("x" * 80)],ifac= e=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IPv6(src=3D"", dst=3D"= ")/UDP(sport=3D,dport=3D)/Raw("x" * 80)],ifac= e=3D"",count=3D1)=0D +=0D +=0D +Test Case 14: MAC_VLAN_PPPOE_IPV4_TCP_PAY_non_src_dst_port=0D +----------------------------------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth / vlan tci is / pppoes / ipv4 src is dst is / tcp / end actions= queue index 1 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / vlan tci is / pppoes / ipv4 src is dst is / tcp / end actions= queue index 2 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP(src= =3D"", dst=3D"")/TCP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP(src=3D"", dst=3D"")/TCP()/Raw("x" * 80)],ifa= ce=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP(src= =3D"", dst=3D"")/TCP()/Raw("x" * 80)],i= face=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP(src= =3D"", dst=3D"")/TCP()/Raw("x" * 80)],i= face=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP(src= =3D"", dst=3D"")/UDP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP(src= =3D"", dst=3D"")/Raw("x" * 80)],iface=3D"",count=3D1)=0D +=0D +=0D +Test Case 15: MAC_VLAN_PPPOE_IPV6_PAY_IP_address=0D +------------------------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth / vlan tci is / pppoes / ipv6 src is / end actions queue index 1 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / vlan tci is / pppoes / ipv6 src is / end actions queue index 2 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IPv6(src= =3D"", dst=3D"")/Raw("x"*80)],iface=3D"",count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IPv6(src=3D"", dst=3D"")/Raw("x"*80)],iface=3D"= ",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IPv6(src= =3D"", dst=3D"")/Raw("x"*80)],iface=3D"= ",count=3D1)=0D +=0D +=0D +Test Case 16: MAC_PPPOE_LCP_PAY=0D +-------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth dst is = / pppoes seid is / pppoe_proto_id is / end actions q= ueue index 1 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth dst is = / pppoes seid is / pppoe_proto_id is / end actions q= ueue index 2 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/PPP_LCP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(= sessionid=3D)/PPP(proto=3D)/PPP_LCP()/Raw("x" * 80)],if= ace=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/PPP_LCP()/Raw("x" * 80)],if= ace=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D +=0D +=0D +Test Case 17: MAC_PPPOE_IPCP_PAY=0D +--------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth dst is = / pppoes seid is / pppoe_proto_id is / end actions = queue index 1 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth dst is = / pppoes seid is / pppoe_proto_id is / end actions = queue index 2 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/PPP_IPCP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(= sessionid=3D)/PPP(proto=3D)/PPP_IPCP()/Raw("x" * 80)],= iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/PPP_IPCP()/Raw("x" * 80)],= iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D +=0D +=0D +Test Case 18: MAC_VLAN_PPPOE_LCP_PAY=0D +------------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth dst is = / vlan tci is / pppoes seid is / pppoe_proto_id is / end actions queue index 1 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth dst is = / vlan tci is / pppoes seid is / pppoe_proto_id is / end actions queue index 2 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/PPP_LCP()= /Raw("x" * 80)],iface=3D"",count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(= vlan=3D,type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/PPP_LCP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/PPP_LCP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/PPP_LCP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP()/Raw= ("x" * 80)],iface=3D"",count=3D1)=0D +=0D +=0D +Test Case 19: MAC_VLAN_PPPOE_IPCP_PAY=0D +-------------------------------------=0D +rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth dst is = / vlan tci is / pppoes seid is / pppoe_proto_id is / end actions queue index 1 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth dst is = / vlan tci is / pppoes seid is / pppoe_proto_id is / end actions queue index 2 / end=0D +=0D +matched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/PPP_IPCP= ()/Raw("x" * 80)],iface=3D"",count=3D1)=0D +=0D +mismatched packets::=0D +=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(= vlan=3D,type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/PPP_IPCP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,type=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/PPP_IPCP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/PPP_IPCP()/Raw("x" * 80)],iface=3D"",count=3D1)=0D + >>> sendp([Ether(dst=3D"",type=3D0x8100)/Dot1Q(vlan=3D,typ= e=3D0x8864)/PPPoE(sessionid=3D)/PPP(proto=3D)/IP()/Raw= ("x" * 80)],iface=3D"",count=3D1)=0D +=0D +=0D +Test Case 20: check flow priority filter=0D +----------------------------------------=0D +1. launch testpmd with --log-level=3D"ice,8"=0D +=0D +2. create rules with priority 0, check the rule is created to switch with = a log "Succeeded to create (2) flow"::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 dst is / nvgre tni is / eth / ipv4 src is dst is <= inner ipv4 dst> / end actions queue index 3 / end=0D + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 / udp / v= xlan / eth / ipv4 src is dst is / tcp src is = dst is / end actions rss queues 4 5 end / end=0D + testpmd> flow create 0 priority 0 ingress pattern eth dst is = / vlan tci is / pppoes seid is / pppoe_proto_id is / end actions drop / end=0D +=0D +3. create rules with priority 0, and the action is mark, check the rule is= created to fdir with a log "Succeeded to create (1) flow"::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 / udp / v= xlan / eth / ipv4 src is dst is / tcp src is = dst is / end actions rss queues 4 5 end / mark id 3 / end=0D +=0D +4. create rules with priority 1, check the rule is created to switch with = a log "Succeeded to create (2) flow"::=0D +=0D + testpmd> flow create 0 priority 1 ingress pattern eth / ipv4 / udp / v= xlan / eth / ipv4 src is dst is / tcp src is = dst is / end actions rss queues 4 5 end / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth dst is = / vlan tci is / pppoes seid is / pppoe_proto_id is / end actions drop / end=0D +=0D +5. create rules with priority 1, and the action is mark, check the rule cr= eate fail::=0D +=0D + testpmd> flow create 0 priority 1 ingress pattern eth / ipv4 dst is / nvgre tni is / eth / ipv4 src is dst is <= inner ipv4 dst> / end actions queue index 3 / mark id 3 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / ipv4 / udp / v= xlan / eth / ipv4 src is dst is / tcp src is = dst is / end actions rss queues 4 5 end / mark id 3 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth dst is = / vlan tci is / pppoes seid is / pppoe_proto_id is / end actions drop / mark id 3 / end=0D +=0D +=0D +Test Case 21: negative test cases=0D +---------------------------------=0D +1. create rules, check all these rules can not be created::=0D +=0D + testpmd> flow create 0 priority 2 ingress pattern eth / ipv4 src is dst is / end actions queue index 3 / end=0D + testpmd> flow create 0 priority a ingress pattern eth / ipv4 src is dst is / end actions queue index 3 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / ipv4 src is dst is / end actions mark / rss / end=0D +=0D +=0D +Test Case 22: exclusive test cases=0D +----------------------------------=0D +Subcase 1: same pattern/input set/action different priority=0D +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=0D +1. create same pattern, input set and action but different priority, check= these two rules can be created::=0D +=0D + testpmd> flow create 0 priority 1 ingress pattern eth / ipv4 src is dst is / end actions queue index 3 / end=0D + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is dst is / end actions queue index 3 / end=0D +=0D +2. send matched pkts and check queue 3 receive this pkt::=0D +=0D + >>> sendp([Ether(dst=3D"")/IP(src=3D"",dst=3D"")/TCP()/("X"*480)], iface=3D"", count=3D1)=0D +=0D +3. destroy rules::=0D +=0D + flow flush 0=0D +=0D +Subcase 2: same pattern/input set/priority different action=0D +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=0D +1. create same pattern, input set and priority but different action, check= the second rule can not be created::=0D +=0D + testpmd> flow create 0 priority 1 ingress pattern eth / ipv4 src is dst is / end actions queue index 3 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / ipv4 src is dst is / end actions rss queues 4 5 end / end=0D +=0D +Subcase 3: some rules overlap=0D +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=0D +1. create rules::=0D +=0D + testpmd> flow create 0 priority 0 ingress pattern eth / vlan / vlan / = pppoes / pppoe_proto_id is 0x21 / end actions queue index 3 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / vlan / vlan / = pppoes seid is 1 / ipv4 / end actions queue index 2 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / vlan / vlan tc= i is 12 / end actions queue index 4 / end=0D + testpmd> flow create 0 priority 0 ingress pattern eth dst is 00:00:00:= 01:03:13 / vlan / vlan / end actions rss queues 1 2 end / end=0D + testpmd> flow create 0 priority 0 ingress pattern eth dst is 00:00:00:= 01:03:03 / end actions queue index 8 / end=0D + testpmd> flow create 0 priority 1 ingress pattern eth / vlan tci is 1 = / vlan tci is 2 / end actions queue index 4 / end=0D +=0D +2. check all the rules exist in the list::=0D +=0D + flow list 0=0D +=0D +3. send pkt which match rule 0 and rule 1, check the pkt can be received b= y queue 3::=0D +=0D + >>> sendp([Ether(type=3D0x8100)/Dot1Q(vlan=3D1,type=3D0x8100)/Dot1Q(vl= an=3D0x2,type=3D0x8864)/PPPoE(sessionid=3D0x1)/PPP(proto=3D0x21)/IP()/UDP(d= port=3D23)/("X"*480)], iface=3D"")=0D +=0D +4. destroy rule 0, repeat step 3 and check the pkt can be received by queu= e 2::=0D +=0D + flow destroy 0 rule 0=0D +=0D +5. send pkt which match rule 2 and rule 3, check the pkt can be received b= y queue 1 or 2::=0D +=0D + >>> sendp([Ether(dst=3D"00:00:00:01:03:13")/Dot1Q(vlan=3D1)/Dot1Q(vlan= =3D12)/Raw("x"*480)], iface=3D"", count=3D1)=0D +=0D +6. destroy rule 3, repeat step 5 and check the pkt can be received by queu= e 4::=0D +=0D + flow destroy 0 rule 3=0D +=0D +7. send pkt which match rule 4 and rule 5, check the pkt will be received = by queue 8::=0D +=0D + >>> sendp([Ether(dst=3D"00:00:00:01:03:03")/Dot1Q(vlan=3D1)/Dot1Q(vlan= =3D2)/Raw("x"*480)], iface=3D"", count=3D1)=0D +=0D +8. destroy rule 4, repeat step 7 and check the pkts can be received by que= ue 4::=0D +=0D + flow destroy 0 rule 3=0D diff --git a/test_plans/index.rst b/test_plans/index.rst index 68250fca..ab9ff9ab 100644 --- a/test_plans/index.rst +++ b/test_plans/index.rst @@ -57,6 +57,7 @@ The following are the test plans for the DPDK DTS automat= ed test system. cvl_dcf_switch_filter_pppoe_test_plan cvl_dcf_switch_filter_gtpu_test_plan cvl_dcf_flow_priority_test_plan + cvl_flow_priority_test_plan cvl_dcf_qos_test_plan cvl_ecpri_test_plan cvl_fdir_test_plan --=20 2.25.1