Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/105276/?format=api
http://patches.dpdk.org/api/patches/105276/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/20211220135058.3864-3-hailinx.xu@intel.com/", "project": { "id": 3, "url": "http://patches.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<20211220135058.3864-3-hailinx.xu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20211220135058.3864-3-hailinx.xu@intel.com", "date": "2021-12-20T13:50:58", "name": "[v1,2/2] tests/cvl_pf_flow_priority: add pf flow priority cases", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "13759c2c0782f8dbb3c305f73ef30b03b1f30ff0", "submitter": { "id": 1704, "url": "http://patches.dpdk.org/api/people/1704/?format=api", "name": "hailinx", "email": "hailinx.xu@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dts/patch/20211220135058.3864-3-hailinx.xu@intel.com/mbox/", "series": [ { "id": 20980, "url": "http://patches.dpdk.org/api/series/20980/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=20980", "date": "2021-12-20T13:50:56", "name": "add pf priority cases", "version": 1, "mbox": "http://patches.dpdk.org/series/20980/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/105276/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/105276/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 64160A034C;\n\tMon, 20 Dec 2021 07:21:55 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5AE5241154;\n\tMon, 20 Dec 2021 07:21:55 +0100 (CET)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id 42CD040395\n for <dts@dpdk.org>; Mon, 20 Dec 2021 07:21:53 +0100 (CET)", "from orsmga006.jf.intel.com ([10.7.209.51])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Dec 2021 22:21:52 -0800", "from unknown (HELO localhost.localdomain) ([10.240.183.55])\n by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Dec 2021 22:21:50 -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=1639981313; x=1671517313;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=nqNq5RR11+Y0n7sBD+ixTKjXiW9d3ADxmhN0bZrvE08=;\n b=XKzRYW4JcwwbEbl46mHW988B6D9G3EhTlAr2sQn1s9He1p656qfGt7Jw\n 7+Zg2ny3Rv88S/7ol0a9vRvsZS64dImV3t1rw5lY8YSp4RlGwTdmoukPE\n RDlRkAzU8tI9N+GMu0+Y27rMcbZhBU8MVEhMU6/ZN80zkH5tMTJUwgDbW\n JLvtdytc/F+Zya+LQGCLX8Go62WdZuuiYZkNA+6EleZS906lVIA21htnd\n JSlZHXIt7RRsVbAP3dsOBNLGTqipoYVW/4duEGlScdgOaxS1xkT0oAPKw\n 5qpYOcC66fgGmXjuvIx1zNjCH4QU/XEwxOpWdiGCiGAhI39k4NYXh+Phn Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10203\"; a=\"238850552\"", "E=Sophos;i=\"5.88,219,1635231600\"; d=\"scan'208\";a=\"238850552\"", "E=Sophos;i=\"5.88,219,1635231600\"; d=\"scan'208\";a=\"467279053\"" ], "From": "Hailin Xu <hailinx.xu@intel.com>", "To": "dts@dpdk.org,\n\tqi.fu@intel.com", "Cc": "Hailin Xu <hailinx.xu@intel.com>", "Subject": "[dts][PATCH v1 2/2] tests/cvl_pf_flow_priority: add pf flow priority\n cases", "Date": "Mon, 20 Dec 2021 21:50:58 +0800", "Message-Id": "<20211220135058.3864-3-hailinx.xu@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20211220135058.3864-1-hailinx.xu@intel.com>", "References": "<20211220135058.3864-1-hailinx.xu@intel.com>", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org" }, "content": "add cvl pf flow priority cases\n\nSigned-off-by: Hailin Xu <hailinx.xu@intel.com>\n---\n tests/TestSuite_cvl_pf_flow_priority.py | 555 ++++++++++++++++++++++++\n 1 file changed, 555 insertions(+)\n create mode 100644 tests/TestSuite_cvl_pf_flow_priority.py", "diff": "diff --git a/tests/TestSuite_cvl_pf_flow_priority.py b/tests/TestSuite_cvl_pf_flow_priority.py\nnew file mode 100644\nindex 00000000..1abc9f1c\n--- /dev/null\n+++ b/tests/TestSuite_cvl_pf_flow_priority.py\n@@ -0,0 +1,555 @@\n+# BSD LICENSE\n+#\n+# Copyright(c) 2021 Intel Corporation. All rights reserved.\n+# All rights reserved.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions\n+# are met:\n+#\n+# * Redistributions of source code must retain the above copyright\n+# notice, this list of conditions and the following disclaimer.\n+# * Redistributions in binary form must reproduce the above copyright\n+# notice, this list of conditions and the following disclaimer in\n+# the documentation and/or other materials provided with the\n+# distribution.\n+# * Neither the name of Intel Corporation nor the names of its\n+# contributors may be used to endorse or promote products derived\n+# from this software without specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+# \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+import json\n+import time\n+import re\n+import copy\n+\n+from framework.test_case import TestCase, skip_unsupported_pkg, check_supported_nic\n+from framework.pmd_output import PmdOutput\n+from framework.packet import Packet\n+from .rte_flow_common import FdirProcessing, check_drop\n+\n+tv_mac_ipv4_pay = {\n+ 'name': 'tv_mac_ipv4_pay',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth dst is 68:05:ca:8d:ed:a8 / ipv4 src is 192.168.0.1 dst is 192.168.0.2 tos is 4 ttl is 2 / end actions queue index 1 / end',\n+ 'flow create 0 priority 1 ingress pattern eth dst is 68:05:ca:8d:ed:a8 / ipv4 src is 192.168.0.1 dst is 192.168.0.2 tos is 4 ttl is 2 / end actions queue index 4 / end'],\n+ 'packet': {\n+ 'matched': ['Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\",tos=4,ttl=2)/(\"X\"*480)'],\n+ 'mismatched': ['Ether(dst=\"68:05:ca:8d:ed:a1\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\",tos=4,ttl=2)/(\"X\"*480)',\n+ 'Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.2\",tos=4,ttl=2)/(\"X\"*480)',\n+ 'Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.7\",tos=4,ttl=2)/(\"X\"*480)',\n+ 'Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\",tos=5,ttl=2)/(\"X\"*480)',\n+ 'Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\",tos=4,ttl=9)/(\"X\"*480)']},\n+ 'check_param': {\n+ 'check_0': {'queue': 1},\n+ 'check_1': {'queue': 4},}\n+}\n+\n+tv_mac_ipv4_udp_pay = {\n+ 'name': 'tv_mac_ipv4_udp_pay',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / udp src is 50 dst is 23 / end actions rss queues 4 5 end / end',\n+ 'flow create 0 priority 1 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / udp src is 50 dst is 23 / end actions queue index 2 / end'],\n+ 'packet': {\n+ 'matched': ['Ether()/IP(src=\"192.168.0.2\",dst=\"192.168.0.3\",tos=4)/UDP(sport=50,dport=23)/Raw(\"x\"*80)'],\n+ 'mismatched': ['Ether()/IP(src=\"192.168.0.5\",dst=\"192.168.0.3\",tos=4)/UDP(sport=50,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(src=\"192.168.0.2\",dst=\"192.168.0.7\",tos=4)/UDP(sport=50,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(src=\"192.168.0.2\",dst=\"192.168.0.3\",tos=5)/UDP(sport=50,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(src=\"192.168.0.2\",dst=\"192.168.0.3\",tos=4)/UDP(sport=2,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(src=\"192.168.0.2\",dst=\"192.168.0.3\",tos=4)/UDP(sport=50,dport=3)/Raw(\"x\"*80)']},\n+ 'check_param': {\n+ 'check_0': {'queue': [4, 5]},\n+ 'check_1': {'queue': 2}}\n+}\n+\n+tv_mac_ipv6 = {\n+ 'name': 'tv_mac_ipv6',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1536 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / end actions rss queues 4 5 end / end',\n+ 'flow create 0 priority 1 ingress pattern eth / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1536 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / end actions queue index 8 / end'],\n+ 'packet': {\n+ 'matched': ['Ether()/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/(\"X\"*480)',\n+ ],\n+ 'mismatched': ['Ether()/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/(\"X\"*480)',\n+ 'Ether()/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/(\"X\"*480)',\n+ 'Ether()/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/IPv6ExtHdrFragment()/(\"X\"*480)',\n+ 'Ether()/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/IPv6ExtHdrFragment()/(\"X\"*480)']},\n+ 'check_param': {\n+ 'check_0': {'queue': [4, 5]},\n+ 'check_1': {'queue': 8}}\n+}\n+\n+tv_mac_ipv6_tcp = {\n+ 'name': 'tv_mac_ipv6_tcp',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 tc is 3 / tcp src is 25 dst is 23 / end actions rss queues 4 5 end / end',\n+ 'flow create 0 priority 1 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 tc is 3 / tcp src is 25 dst is 23 / end actions queue index 3 / end'],\n+ 'packet': {\n+ 'matched': ['Ether()/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1515\",dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\",tc=3)/TCP(sport=25,dport=23)/Raw(\"x\"*80)'],\n+ 'mismatched': ['Ether()/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1515\",dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\",tc=3)/TCP(sport=25,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1515\",dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\",tc=7)/TCP(sport=25,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1515\",dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\",tc=3)/TCP(sport=1,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1515\",dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\",tc=3)/TCP(sport=25,dport=20)/Raw(\"x\"*80)']\n+ },\n+ 'check_param': {\n+ 'check_0': {'queue': [4, 5]},\n+ 'check_1': {'queue': 3}},\n+}\n+\n+tv_mac_ipv4_vxlan_ipv4_frag = {\n+ 'name': 'tv_mac_ipv4_vxlan_ipv4_frag',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / end actions rss queues 2 3 end / end',\n+ 'flow create 0 priority 1 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / end actions queue index 5 / end'],\n+ 'packet': {\n+ 'matched': ['Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\",frag=5)/Raw(\"x\"*80)'],\n+ 'mismatched': ['Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.4\", dst=\"192.168.0.3\",frag=5)/Raw(\"x\"*80)',\n+ 'Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.5\",frag=5)/Raw(\"x\"*80)',\n+ ]},\n+ 'check_param': {\n+ 'check_0': {'queue': [2, 3]},\n+ 'check_1': {'queue': 5}}\n+}\n+\n+tv_mac_ipv4_vxlan_ipv4_pay = {\n+ 'name': 'tv_mac_ipv4_vxlan_ipv4_pay',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / end actions queue index 5 / end',\n+ 'flow create 0 priority 1 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / end actions rss queues 2 3 end / end'],\n+ 'packet': {\n+ 'matched': ['Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/Raw(\"x\"*80)',\n+ 'Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/TCP()/Raw(\"x\"*80)'],\n+ 'mismatched': ['Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.5\", dst=\"192.168.0.3\")/Raw(\"x\"*80)',\n+ 'Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.7\")/Raw(\"x\"*80)',\n+ 'Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.5\", dst=\"192.168.0.3\")/TCP()/Raw(\"x\"*80)',\n+ 'Ether()/IP()/UDP()/VXLAN()/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.7\")/TCP()/Raw(\"x\"*80)',\n+ ]},\n+ 'check_param': {\n+ 'check_0': {'queue': 5},\n+ 'check_1': {'queue': [2, 3]}}\n+}\n+\n+tv_mac_ipv4_nvgre_ipv4_udp_pay = {\n+ 'name': 'tv_mac_ipv4_nvgre_ipv4_udp_pay',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth / ipv4 dst is 192.168.0.1 / nvgre tni is 0x8 / eth dst is 68:05:ca:8d:ed:a8 / ipv4 src is 192.168.1.2 dst is 192.168.1.3 / udp src is 25 dst is 23 / end actions rss queues 2 3 end / end',\n+ 'flow create 0 priority 1 ingress pattern eth / ipv4 dst is 192.168.0.1 / nvgre tni is 0x8 / eth dst is 68:05:ca:8d:ed:a8 / ipv4 src is 192.168.1.2 dst is 192.168.1.3 / udp src is 25 dst is 23 / end actions queue index 4 / end'],\n+ 'packet': {\n+ 'matched': ['Ether()/IP(dst=\"192.168.0.1\")/NVGRE(TNI=0x8)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.1.2\", dst=\"192.168.1.3\")/UDP(sport=25,dport=23)/Raw(\"x\"*80)'],\n+ 'mismatched': ['Ether()/IP(dst=\"192.168.0.2\")/NVGRE(TNI=0x8)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.1.2\", dst=\"192.168.1.3\")/UDP(sport=25,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/NVGRE(TNI=0x1)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.1.2\", dst=\"192.168.1.3\")/UDP(sport=25,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/NVGRE(TNI=0x8)/Ether(dst=\"68:05:ca:8d:ed:a3\")/IP(src=\"192.168.1.2\", dst=\"192.168.1.3\")/UDP(sport=25,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/NVGRE(TNI=0x8)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.1.5\", dst=\"192.168.1.3\")/UDP(sport=25,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/NVGRE(TNI=0x8)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.1.2\", dst=\"192.168.1.7\")/UDP(sport=25,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/NVGRE(TNI=0x8)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.1.2\", dst=\"192.168.1.3\")/UDP(sport=2,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/NVGRE(TNI=0x8)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.1.2\", dst=\"192.168.1.3\")/UDP(sport=25,dport=20)/Raw(\"x\"*80)']},\n+ 'check_param': {\n+ 'check_0': {'queue': [2, 3]},\n+ 'check_1': {'queue': 4}}\n+}\n+\n+tv_mac_ipv4_nvgre_ipv4_tcp = {\n+ 'name': 'tv_mac_ipv4_nvgre_ipv4_tcp',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth / ipv4 dst is 192.168.0.1 / nvgre tni is 2 / eth dst is 68:05:ca:8d:ed:a8 / ipv4 src is 192.168.1.2 dst is 192.168.1.3 / tcp src is 25 dst is 23 / end actions queue index 5 / end',\n+ 'flow create 0 priority 1 ingress pattern eth / ipv4 dst is 192.168.0.1 / nvgre tni is 2 / eth dst is 68:05:ca:8d:ed:a8 / ipv4 src is 192.168.1.2 dst is 192.168.1.3 / tcp src is 25 dst is 23 / end actions rss queues 2 3 end / end'],\n+ 'packet': {\n+ 'matched': ['Ether()/IP(dst=\"192.168.0.1\")/NVGRE(TNI=2)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.1.2\", dst=\"192.168.1.3\")/TCP(sport=25,dport=23)/Raw(\"x\"*80)'],\n+ 'mismatched': ['Ether()/IP(dst=\"192.168.0.2\")/NVGRE(TNI=2)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.1.2\", dst=\"192.168.1.3\")/TCP(sport=25,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/NVGRE(TNI=3)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.1.2\", dst=\"192.168.1.3\")/TCP(sport=25,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/NVGRE(TNI=2)/Ether(dst=\"68:05:ca:8d:ed:a3\")/IP(src=\"192.168.1.2\", dst=\"192.168.1.3\")/TCP(sport=25,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/NVGRE(TNI=2)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.1.5\", dst=\"192.168.1.3\")/TCP(sport=25,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/NVGRE(TNI=2)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.1.2\", dst=\"192.168.1.7\")/TCP(sport=25,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/NVGRE(TNI=2)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.1.2\", dst=\"192.168.1.3\")/TCP(sport=1,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/NVGRE(TNI=2)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.1.2\", dst=\"192.168.1.3\")/TCP(sport=25,dport=20)/Raw(\"x\"*80)']},\n+ 'check_param': {\n+ 'check_0': {'queue': 5},\n+ 'check_1': {'queue': [2, 3]}}\n+}\n+\n+tv_ethertype_filter_pppoed = {\n+ 'name': 'tv_ethertype_filter_pppoed',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth type is 0x8863 / end actions queue index 4 / end',\n+ 'flow create 0 priority 1 ingress pattern eth type is 0x8863 / end actions queue index 2 / end'],\n+ 'packet': {\n+ 'matched': ['Ether(type=0x8863)/Raw(\"x\" *80)',\n+ 'Ether()/PPPoED()/Raw(\"x\" *80)'],\n+ 'mismatched': ['Ether(type=0x8864)/Raw(\"x\" *80)',\n+ 'Ether()/PPPoE()/Raw(\"x\" *80)']},\n+ 'check_param': {\n+ 'check_0': {'queue': 4},\n+ 'check_1': {'queue': 2}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv4_pay_session_id_proto_id = {\n+ 'name': 'tv_mac_vlan_pppoe_ipv4_pay_session_id_proto_id',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0x0021 / end actions queue index 1 / end',\n+ 'flow create 0 priority 1 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0x0021 / end actions queue index 2 / end'],\n+ 'packet': {\n+ 'matched': ['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\"*80)'],\n+ 'mismatched': ['Ether(dst=\"00:11:22:33:44:54\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=4)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IPv6()/Raw(\"x\" * 80)']},\n+ 'check_param': {\n+ 'check_0': {'queue': 1},\n+ 'check_1': {'queue': 2}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv6_pay_session_id_proto_id = {\n+ 'name': 'tv_mac_vlan_pppoe_ipv6_pay_session_id_proto_id',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0x0057 / end actions queue index 1 / end',\n+ 'flow create 0 priority 1 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0x0057 / end actions queue index 2 / end'],\n+ 'packet': {\n+ 'matched': ['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6()/Raw(\"x\" * 80)'],\n+ 'mismatched': ['Ether(dst=\"00:11:22:33:44:54\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6()/Raw(\"x\" * 80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6()/Raw(\"x\" * 80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=4)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6()/Raw(\"x\" * 80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IP()/Raw(\"x\" * 80)']},\n+ 'check_param': {\n+ 'check_0': {'queue': 1},\n+ 'check_1': {'queue': 2}}\n+}\n+\n+tv_mac_pppoe_ipv4_pay_ip_address = {\n+ 'name': 'tv_mac_pppoe_ipv4_pay_ip_address',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth / pppoes / ipv4 src is 192.168.1.1 dst is 192.168.1.2 / end actions queue index 1 / end',\n+ 'flow create 0 priority 1 ingress pattern eth / pppoes / ipv4 src is 192.168.1.1 dst is 192.168.1.2 / end actions queue index 2 / end'],\n+ 'packet': {\n+ 'matched': ['Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/Raw(\"x\"*80)'],\n+ 'mismatched': ['Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.3\", dst=\"192.168.1.2\")/Raw(\"x\"*80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.4\")/Raw(\"x\"*80)']},\n+ 'check_param': {\n+ 'check_0': {'queue': 1},\n+ 'check_1': {'queue': 2}}\n+}\n+\n+tv_mac_pppoe_ipv6_udp_pay = {\n+ 'name': 'tv_mac_pppoe_ipv6_udp_pay',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth / pppoes / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2022 / udp src is 25 dst is 23 / end actions queue index 1 / end',\n+ 'flow create 0 priority 1 ingress pattern eth / pppoes / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2022 / udp src is 25 dst is 23 / end actions queue index 2 / end'],\n+ 'packet': {\n+ 'matched': ['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+ 'mismatched': ['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+ 'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=27,dport=23)/Raw(\"x\" * 80)',\n+ 'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=19)/Raw(\"x\" * 80)']},\n+ 'check_param': {\n+ 'check_0': {'queue': 1},\n+ 'check_1': {'queue': 2}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv4_tcp_pay_non_src_dst_port = {\n+ 'name': 'tv_mac_vlan_pppoe_ipv4_tcp_pay_non_src_dst_port',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth / vlan tci is 1 / pppoes / ipv4 src is 192.168.1.1 dst is 192.168.1.2 / tcp / end actions queue index 1 / end',\n+ 'flow create 0 priority 1 ingress pattern eth / vlan tci is 1 / pppoes / ipv4 src is 192.168.1.1 dst is 192.168.1.2 / tcp / end actions queue index 2 / end'],\n+ 'packet': {\n+ 'matched': ['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+ 'mismatched': ['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.3\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.4\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/Raw(\"x\" * 80)']},\n+ 'check_param': {\n+ 'check_0': {'queue': 1},\n+ 'check_1': {'queue': 2}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv6_pay_ip_address = {\n+ 'name': 'tv_mac_vlan_pppoe_ipv6_pay_ip_address',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth / vlan tci is 1 / pppoes / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1536 / end actions queue index 1 / end',\n+ 'flow create 0 priority 1 ingress pattern eth / vlan tci is 1 / pppoes / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1536 / end actions queue index 2 / end'],\n+ 'packet': {\n+ 'matched': ['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\"*80)'],\n+ 'mismatched': ['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\"*80)',\n+ 'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\"*80)']},\n+ 'check_param': {\n+ 'check_0': {'queue': 1},\n+ 'check_1': {'queue': 2}}\n+}\n+\n+tv_mac_pppoe_lcp_pay = {\n+ 'name': 'tv_mac_pppoe_lcp_pay',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth dst is 00:11:22:33:44:55 / pppoes seid is 3 / pppoe_proto_id is 0xc021 / end actions queue index 1 / end',\n+ 'flow create 0 priority 1 ingress pattern eth dst is 00:11:22:33:44:55 / pppoes seid is 3 / pppoe_proto_id is 0xc021 / end actions queue index 2 / end'],\n+ 'packet': {\n+ 'matched': ['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\xc0\\\\x21\\')/PPP_LCP()/Raw(\"x\" * 80)'],\n+ 'mismatched': ['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:53\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\xc0\\\\x21\\')/PPP_LCP()/Raw(\"x\" * 80)',\n+ 'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=4)/PPP(b\\'\\\\xc0\\\\x21\\')/PPP_LCP()/Raw(\"x\" * 80)',\n+ 'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)']},\n+ 'check_param': {\n+ 'check_0': {'queue': 1},\n+ 'check_1': {'queue': 2}}\n+}\n+\n+tv_mac_pppoe_ipcp_pay = {\n+ 'name': 'tv_mac_pppoe_ipcp_pay',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth dst is 00:11:22:33:44:55 / pppoes seid is 3 / pppoe_proto_id is 0x8021 / end actions queue index 1 / end',\n+ 'flow create 0 priority 1 ingress pattern eth dst is 00:11:22:33:44:55 / pppoes seid is 3 / pppoe_proto_id is 0x8021 / end actions queue index 2 / end'],\n+ 'packet': {\n+ 'matched': ['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x80\\\\x21\\')/PPP_IPCP()/Raw(\"x\" * 80)'],\n+ 'mismatched': ['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:53\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x80\\\\x21\\')/PPP_IPCP()/Raw(\"x\" * 80)',\n+ 'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=4)/PPP(b\\'\\\\x80\\\\x21\\')/PPP_IPCP()/Raw(\"x\" * 80)',\n+ 'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)']},\n+ 'check_param': {\n+ 'check_0': {'queue': 1},\n+ 'check_1': {'queue': 2}}\n+}\n+\n+tv_mac_vlan_pppoe_lcp_pay = {\n+ 'name': 'tv_mac_vlan_pppoe_lcp_pay',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0xc021 / end actions queue index 1 / end',\n+ 'flow create 0 priority 1 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0xc021 / end actions queue index 2 / end'],\n+ 'packet': {\n+ 'matched': ['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\xc0\\\\x21\\')/PPP_LCP()/Raw(\"x\" * 80)'],\n+ 'mismatched': ['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:53\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\xc0\\\\x21\\')/PPP_LCP()/Raw(\"x\" * 80)',\n+ 'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\xc0\\\\x21\\')/PPP_LCP()/Raw(\"x\" * 80)',\n+ 'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=4)/PPP(b\\'\\\\xc0\\\\x21\\')/PPP_LCP()/Raw(\"x\" * 80)',\n+ 'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)']},\n+ 'check_param': {\n+ 'check_0': {'queue': 1},\n+ 'check_1': {'queue': 2}}\n+}\n+\n+tv_mac_vlan_pppoe_ipcp_pay = {\n+ 'name': 'tv_mac_vlan_pppoe_ipcp_pay',\n+ 'rule': ['flow create 0 priority 0 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0x8021 / end actions queue index 1 / end',\n+ 'flow create 0 priority 1 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0x8021 / end actions queue index 2 / end'],\n+ 'packet': {\n+ 'matched': ['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x80\\\\x21\\')/PPP_IPCP()/Raw(\"x\" * 80)'],\n+ 'mismatched': ['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:53\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x80\\\\x21\\')/PPP_IPCP()/Raw(\"x\" * 80)',\n+ 'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x80\\\\x21\\')/PPP_IPCP()/Raw(\"x\" * 80)',\n+ 'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=4)/PPP(b\\'\\\\x80\\\\x21\\')/PPP_IPCP()/Raw(\"x\" * 80)',\n+ 'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)'\n+ ]},\n+ 'check_param': {\n+ 'check_0': {'queue': 1},\n+ 'check_1': {'queue': 2}}\n+}\n+\n+class CVLDCFFlowPriorityTest(TestCase):\n+ supported_nic = ['columbiaville_100g', 'columbiaville_25g', 'columbiaville_25gx2']\n+\n+ @check_supported_nic(supported_nic)\n+ def set_up_all(self):\n+ \"\"\"\n+ Run at the start of each test suite.\n+ \"\"\"\n+ self.dut_ports = self.dut.get_ports(self.nic)\n+ # Verify that enough ports are available\n+ self.verify(len(self.dut_ports) >= 1, \"Insufficient ports\")\n+ self.tester_port0 = self.tester.get_local_port(self.dut_ports[0])\n+ self.tester_iface0 = self.tester.get_interface(self.tester_port0)\n+ self.tester_port1 = self.tester.get_local_port(self.dut_ports[0])\n+ self.tester_iface1 = self.tester.get_interface(self.tester_port0)\n+ self.pf_pci=self.dut.ports_info[self.dut_ports[0]]['pci']\n+ self.pkt = Packet()\n+ self.pmdout = PmdOutput(self.dut)\n+ self.rxq = 16\n+ self.process = FdirProcessing(self, self.pmdout, [self.tester_iface0, self.tester_iface1], self.rxq)\n+\n+ def set_up(self):\n+ \"\"\"\n+ Run before each test case.\n+ \"\"\"\n+ self.reload_ice()\n+ self.launch_testpmd()\n+\n+ def reload_ice(self):\n+ self.dut.bind_interfaces_linux('ice')\n+ self.dut.send_expect('rmmod ice', '#', 120)\n+ self.dut.send_expect('modprobe ice', '#', 120)\n+ self.dut.bind_interfaces_linux('vfio-pci')\n+\n+ def launch_testpmd(self, eal_param=False):\n+ \"\"\"\n+ launch testpmd with the command\n+ \"\"\"\n+ #if eal_param:\n+ if self._suite_result.test_case == 'test_flow_priority_filter':\n+ self.pmdout.start_testpmd(cores='1S/4C/1T', ports=[self.pf_pci], eal_param='--log-level=ice,8', param=\"--rxq=16 --txq=16\")\n+ else:\n+ self.pmdout.start_testpmd(cores='1S/4C/1T', ports=[self.pf_pci], param=\"--rxq=16 --txq=16\")\n+ self.pmdout.execute_cmd('set fwd rxonly')\n+ self.pmdout.execute_cmd('set verbose 1')\n+ self.pmdout.execute_cmd('rx_vxlan_port add 4789 0')\n+ self.pmdout.execute_cmd('start')\n+\n+ def test_mac_ipv4_pay(self):\n+ self.process.handle_priority_cases(tv_mac_ipv4_pay)\n+\n+ def test_mac_ipv4_udp_pay(self):\n+ self.process.handle_priority_cases(tv_mac_ipv4_udp_pay)\n+\n+ def test_mac_ipv6(self):\n+ self.process.handle_priority_cases(tv_mac_ipv6)\n+\n+ def test_mac_ipv6_tcp(self):\n+ self.process.handle_priority_cases(tv_mac_ipv6_tcp)\n+\n+ def test_mac_ipv4_vxlan_ipv4_frag(self):\n+ self.process.handle_priority_cases(tv_mac_ipv4_vxlan_ipv4_frag)\n+\n+ def test_mac_ipv4_vxlan_ipv4_pay(self):\n+ self.process.handle_priority_cases(tv_mac_ipv4_vxlan_ipv4_pay)\n+\n+ def test_mac_ipv4_nvgre_ipv4_udp_pay(self):\n+ self.process.handle_priority_cases(tv_mac_ipv4_nvgre_ipv4_udp_pay)\n+\n+ def test_mac_ipv4_nvgre_ipv4_tcp(self):\n+ self.process.handle_priority_cases(tv_mac_ipv4_nvgre_ipv4_tcp)\n+\n+ def test_ethertype_filter_pppoed(self):\n+ self.process.handle_priority_cases(tv_ethertype_filter_pppoed)\n+\n+ def test_mac_vlan_pppoe_ipv4_pay_session_id_proto_id(self):\n+ self.process.handle_priority_cases(tv_mac_vlan_pppoe_ipv4_pay_session_id_proto_id)\n+\n+ def test_mac_vlan_pppoe_ipv6_pay_session_id_proto_id(self):\n+ self.process.handle_priority_cases(tv_mac_vlan_pppoe_ipv6_pay_session_id_proto_id)\n+\n+ def test_mac_pppoe_ipv4_pay_ip_address(self):\n+ self.process.handle_priority_cases(tv_mac_pppoe_ipv4_pay_ip_address)\n+\n+ def test_mac_pppoe_ipv6_udp_pay(self):\n+ self.process.handle_priority_cases(tv_mac_pppoe_ipv6_udp_pay)\n+\n+ def test_mac_vlan_pppoe_ipv4_tcp_pay_non_src_dst_port(self):\n+ self.process.handle_priority_cases(tv_mac_vlan_pppoe_ipv4_tcp_pay_non_src_dst_port)\n+\n+ def test_mac_vlan_pppoe_ipv6_pay_ip_address(self):\n+ self.process.handle_priority_cases(tv_mac_vlan_pppoe_ipv6_pay_ip_address)\n+\n+ def test_mac_pppoe_lcp_pay(self):\n+ self.process.handle_priority_cases(tv_mac_pppoe_lcp_pay)\n+\n+ def test_mac_pppoe_ipcp_pay(self):\n+ self.process.handle_priority_cases(tv_mac_pppoe_ipcp_pay)\n+\n+ def test_mac_vlan_pppoe_lcp_pay(self):\n+ self.process.handle_priority_cases(tv_mac_vlan_pppoe_lcp_pay)\n+\n+ def test_mac_vlan_pppoe_ipcp_pay(self):\n+ self.process.handle_priority_cases(tv_mac_vlan_pppoe_ipcp_pay)\n+\n+ def create_rule_and_check(self, rule_list, check_param):\n+ for rule in rule_list:\n+ out = self.pmdout.execute_cmd(rule)\n+ if isinstance(check_param, list):\n+ self.verify(check_param[0] in out or check_param[1] in out, \"create rule result not meet expected\")\n+ else:\n+ self.verify(check_param in out, \"create rule result not meet expected\")\n+\n+ self.pmdout.execute_cmd('flow flush 0')\n+\n+ def test_flow_priority_filter(self):\n+ rule_list1 = ['flow create 0 priority 0 ingress pattern eth / ipv4 dst is 192.168.0.1 / nvgre tni is 2 / eth / ipv4 src is 192.168.1.2 dst is 192.168.1.3 / end actions queue index 3 / end',\n+ 'flow create 0 priority 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / tcp src is 50 dst is 23 / end actions rss queues 4 5 end / end',\n+ 'flow create 0 priority 0 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0x0057 / end actions drop / end']\n+\n+ rule_list2 = [\n+ 'flow create 0 priority 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / tcp src is 50 dst is 23 / end actions rss queues 4 5 end / mark id 3 / end',\n+ ]\n+\n+ rule_list3 = ['flow create 0 priority 1 ingress pattern eth / ipv4 dst is 192.168.0.1 / nvgre tni is 2 / eth / ipv4 src is 192.168.1.2 dst is 192.168.1.3 / end actions queue index 3 / end',\n+ 'flow create 0 priority 1 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / tcp src is 50 dst is 23 / end actions rss queues 4 5 end / end',\n+ 'flow create 0 priority 1 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0x0057 / end actions drop / end']\n+\n+ rule_list4 = ['flow create 0 priority 1 ingress pattern eth / ipv4 dst is 192.168.0.1 / nvgre tni is 2 / eth / ipv4 src is 192.168.1.2 dst is 192.168.1.3 / end actions queue index 3 / mark id 3 / end',\n+ 'flow create 0 priority 1 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / tcp src is 50 dst is 23 / end actions rss queues 4 5 end / mark id 3 / end',\n+ 'flow create 0 priority 1 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0x0057 / end actions drop / mark id 3 / end']\n+\n+ self.create_rule_and_check(rule_list1, 'Succeeded to create (2) flow')\n+ self.create_rule_and_check(rule_list2, 'Succeeded to create (1) flow')\n+ self.create_rule_and_check(rule_list3, 'Succeeded to create (2) flow')\n+ self.create_rule_and_check(rule_list4, 'Failed to create flow')\n+\n+ def test_negative(self):\n+ rules = ['flow create 0 priority 2 ingress pattern eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / end actions queue index 3 / end',\n+ 'flow create 0 priority a ingress pattern eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / end actions queue index 3 / end',\n+ 'flow create 0 priority 1 ingress pattern eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / end actions mark / rss / end']\n+\n+ self.create_rule_and_check(rules, ['Failed to create flow', 'Bad arguments'])\n+\n+ def test_exclusive(self):\n+ p = 'port\\s+\\d+/queue(.+?):\\s+received\\s+\\d+\\s+packets'\n+ p1 = 'Forward\\s+statistics\\s+for\\s+port\\s+0.*?\\n.*?RX-packets:\\s+(\\d+)'\n+\n+ rule_list1 = ['flow create 0 priority 1 ingress pattern eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / end actions queue index 3 / end',\n+ 'flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / end actions queue index 3 / end']\n+ pkts1 = 'Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.0.1\",dst=\"192.168.0.2\",tos=4,ttl=2)/TCP()/(\"X\"*480)'\n+\n+ rule_list2 = ['flow create 0 priority 1 ingress pattern eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / end actions queue index 3 / end',\n+ 'flow create 0 priority 1 ingress pattern eth / ipv4 src is 192.168.0.1 dst is 192.168.0.2 / end actions rss queues 4 5 end / end']\n+\n+ rule_list3 = ['flow create 0 priority 0 ingress pattern eth / vlan / vlan / pppoes / pppoe_proto_id is 0x21 / end actions queue index 3 / end',\n+ 'flow create 0 priority 1 ingress pattern eth / vlan / vlan / pppoes seid is 1 / ipv4 / end actions queue index 2 / end',\n+ 'flow create 0 priority 1 ingress pattern eth / vlan / vlan tci is 12 / ipv4 src is 196.222.232.221 / end actions queue index 4 / end',\n+ 'flow create 0 priority 0 ingress pattern eth / vlan / vlan tci is 12 / ipv4 src is 196.222.232.221 / end actions rss queues 7 8 end / end',\n+ 'flow create 0 priority 0 ingress pattern eth / vlan tci is 1 / vlan tci is 2 / end actions drop / end',\n+ 'flow create 0 priority 1 ingress pattern eth / vlan tci is 1 / vlan tci is 2 / end actions queue index 5 / end']\n+ pkts3 = ['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8100)/Dot1Q(vlan=0x2,type=0x8864)/PPPoE(sessionid=0x1)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/UDP(dport=23)/(\"X\"*480)',\n+ 'Ether()/Dot1Q(vlan=1)/Dot1Q(vlan=12)/IP(src=\"196.222.232.221\")/Raw(\"x\"*480)',\n+ 'Ether()/Dot1Q(vlan=1)/Dot1Q(vlan=2)/Raw(\"x\"*480)']\n+ # subcase1: same pattern/input set/action different priority\n+ rule_id = self.process.create_rule(rule_list1)\n+ self.process.check_rule(rule_list=rule_id)\n+ out = self.process.send_pkt_get_out(pkts1)\n+ self.pmdout.execute_cmd('flow flush 0')\n+ queue = re.search(p, out).group(1)\n+ self.verify(int(queue) == 3, \"queue {} receive pkt, expect queue 3\".format(queue))\n+\n+ # subcase2: same pattern/input set/priority different action\n+ for rule in rule_list2:\n+ out = self.pmdout.execute_cmd(rule)\n+ rule_index = rule_list2.index(rule)\n+ check_param = 'Flow rule #0 created' if rule_index == 0 else 'Failed to create flow'\n+ self.verify(check_param in out, 'create rule result not meet expected')\n+ self.pmdout.execute_cmd('flow flush 0')\n+\n+ # subcase3: some rules overlap\n+ rule_id = self.process.create_rule(rule_list3)\n+ self.process.check_rule(rule_list=rule_id)\n+\n+ out = self.process.send_pkt_get_out(pkts3[0])\n+ queue = re.search(p, out).group(1)\n+ self.verify(int(queue) == 3, \"queue {} receive pkt, expect queue 3\".format(queue))\n+\n+ out = self.process.send_pkt_get_out(pkts3[1])\n+ queue = re.search(p, out).group(1)\n+ self.verify(int(queue) in [7, 8], \"queue {} receive pkt, expect queue 7/8\".format(queue))\n+\n+ out = self.process.send_pkt_get_out(pkts3[2])\n+ pkt_num = re.search(p1, out).group(1)\n+ self.verify(int(pkt_num) == 0, 'drop pkt failed')\n+\n+ # destroy rule\n+ self.process.destroy_rule(rule_id=0)\n+ self.process.destroy_rule(rule_id=3)\n+ self.process.destroy_rule(rule_id=4)\n+ out = self.process.send_pkt_get_out(pkts3[0])\n+ queue = re.findall(p, out)\n+ self.verify(len(queue) == 1 and int(queue[0]) == 2, 'queue 3 not receive this pkt')\n+\n+ out = self.process.send_pkt_get_out(pkts3[1])\n+ queue = re.findall(p, out)\n+ self.verify(len(queue) == 1 and int(queue[0]) == 4, 'queue 1/2 not receive this pkt')\n+\n+ out = self.process.send_pkt_get_out(pkts3[2])\n+ queue = re.findall(p, out)\n+ self.verify(len(queue) == 1 and int(queue[0]) == 5, 'drop pkt failed')\n+\n+ def tear_down(self):\n+ \"\"\"\n+ Run after each test case.\n+ \"\"\"\n+ self.pmdout.execute_cmd('quit', '# ')\n+\n+ def tear_down_all(self):\n+ \"\"\"\n+ Run after each test suite.\n+ \"\"\"\n+ self.dut.kill_all()\n+\n", "prefixes": [ "v1", "2/2" ] }{ "id": 105276, "url": "