Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/75161/?format=api
http://patches.dpdk.org/api/patches/75161/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/20200804052442.4375-1-box.c.chen@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": "<20200804052442.4375-1-box.c.chen@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20200804052442.4375-1-box.c.chen@intel.com", "date": "2020-08-04T05:24:42", "name": "[V1,2/2] tests/cvl_fdir: add-new-case-for-test-l2-ethertype", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "2f845a123e1977aa98678ad295f2f535fb6fbd0f", "submitter": { "id": 1819, "url": "http://patches.dpdk.org/api/people/1819/?format=api", "name": "Chen, BoX C", "email": "box.c.chen@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dts/patch/20200804052442.4375-1-box.c.chen@intel.com/mbox/", "series": [ { "id": 11478, "url": "http://patches.dpdk.org/api/series/11478/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=11478", "date": "2020-08-04T05:24:42", "name": null, "version": 1, "mbox": "http://patches.dpdk.org/series/11478/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/75161/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/75161/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 8227EA053A;\n\tTue, 4 Aug 2020 07:31:38 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 71D5E2BA8;\n\tTue, 4 Aug 2020 07:31:38 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by dpdk.org (Postfix) with ESMTP id 01A6129D2\n for <dts@dpdk.org>; Tue, 4 Aug 2020 07:31:35 +0200 (CEST)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Aug 2020 22:31:34 -0700", "from unknown (HELO cb-dts.sh.intel.com) ([10.240.183.58])\n by fmsmga001.fm.intel.com with ESMTP; 03 Aug 2020 22:31:32 -0700" ], "IronPort-SDR": [ "\n S/87r8hp2lIC2P0dKZ4UkYL9XnzSX2jAcKXoij3/7jTeD9jaO9ex+40yH5LpW+jXOpDE+U8FFb\n jjrlMLc+BJ1w==", "\n qTEcPnvKo2plGiruRAMRhi1iryMNVNcY+4iyYLB8UrmzGh60R43/8H2C1qrUQX6aWLH97CQr7b\n bDz+P+9PuS/g==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9702\"; a=\"151479324\"", "E=Sophos;i=\"5.75,433,1589266800\"; d=\"scan'208\";a=\"151479324\"", "E=Sophos;i=\"5.75,433,1589266800\"; d=\"scan'208\";a=\"396456655\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "ChenBo <box.c.chen@intel.com>", "To": "dts@dpdk.org", "Cc": "ChenBo <box.c.chen@intel.com>", "Date": "Tue, 4 Aug 2020 13:24:42 +0800", "Message-Id": "<20200804052442.4375-1-box.c.chen@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dts] [PATCH V1 2/2] tests/cvl_fdir:\n\tadd-new-case-for-test-l2-ethertype", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.15", "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", "Sender": "\"dts\" <dts-bounces@dpdk.org>" }, "content": "add test case L2 Ethertype.\n\nSigned-off-by: ChenBo <box.c.chen@intel.com>\n---\n tests/TestSuite_cvl_fdir.py | 208 ++++++++++++++++++++++++++++++++++--\n 1 file changed, 202 insertions(+), 6 deletions(-)", "diff": "diff --git a/tests/TestSuite_cvl_fdir.py b/tests/TestSuite_cvl_fdir.py\nindex b821961..c50799b 100644\n--- a/tests/TestSuite_cvl_fdir.py\n+++ b/tests/TestSuite_cvl_fdir.py\n@@ -284,6 +284,18 @@ MAC_IPV4_GTPU = {\n 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IP()/Raw(\"x\"*20)']\n }\n \n+L2_Ethertype = [\n+ 'Ether(dst=\"00:11:22:33:44:55\")/PPPoED()/PPP()/IP()/Raw(\"x\" *80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\", type=0x8863)/IP()/Raw(\"x\" * 80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\")/PPPoE(sessionid=3)/Raw(\"x\" * 80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\", type=0x8864)/IP()/Raw(\"x\" * 80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\")/ARP(pdst=\"192.168.1.1\")',\n+ 'Ether(dst=\"00:11:22:33:44:55\", type=0x0806)/Raw(\"x\" *80)',\n+ 'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)',\n+ 'Ether(dst=\"00:11:22:33:44:55\")/Dot1Q(vlan=1)',\n+ 'Ether(dst=\"00:11:22:33:44:55\",type=0x88f7)/\"\\\\x00\\\\x02\"',\n+ 'Ether(dst=\"00:11:22:33:44:55\",type=0x8847)']\n+\n tv_mac_ipv4_pay_queue_index = {\n \"name\": \"test_mac_ipv4_pay_queue_index\",\n \"rule\": \"flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 proto is 255 ttl is 2 tos is 4 / end actions queue index 1 / end\",\n@@ -1241,6 +1253,144 @@ vectors_mac_ipv4_gtpu = [tv_mac_ipv4_gtpu_queue_index, tv_mac_ipv4_gtpu_queue_gr\n tv_mac_ipv4_gtpu_passthru, tv_mac_ipv4_gtpu_drop,\n tv_mac_ipv4_gtpu_mark_rss, tv_mac_ipv4_gtpu_mark]\n \n+tv_l2_ethertype_queue_index = {\n+ \"name\": \"test_l2_ethertype_queue_index\",\n+ \"rule\": [\n+ \"flow create 0 ingress pattern eth type is 0x8863 / end actions queue index 1 / mark id 1 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x8864 / end actions queue index 2 / mark id 2 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x0806 / end actions queue index 3 / mark id 3 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x8100 / end actions queue index 4 / mark id 4 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x88f7 / end actions queue index 5 / mark id 5 / end\"],\n+ \"scapy_str\": L2_Ethertype,\n+ \"check_param\": [\n+ {\"port_id\": 0, \"queue\": 1, \"mark_id\": 1},\n+ {\"port_id\": 0, \"queue\": 1, \"mark_id\": 1},\n+ {\"port_id\": 0, \"queue\": 2, \"mark_id\": 2},\n+ {\"port_id\": 0, \"queue\": 2, \"mark_id\": 2},\n+ {\"port_id\": 0, \"queue\": 3, \"mark_id\": 3},\n+ {\"port_id\": 0, \"queue\": 3, \"mark_id\": 3},\n+ {\"port_id\": 0, \"queue\": 4, \"mark_id\": 4},\n+ {\"port_id\": 0, \"queue\": 4, \"mark_id\": 4},\n+ {\"port_id\": 0, \"queue\": 5, \"mark_id\": 5},\n+ {\"port_id\": 0, \"queue\": 0}]\n+}\n+\n+tv_l2_ethertype_queue_group = {\n+ \"name\": \"test_l2_ethertype_queue_group\",\n+ \"rule\": [\n+ \"flow create 0 ingress pattern eth type is 0x8863 / end actions rss queues 0 1 end / mark id 0 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x8864 / end actions rss queues 2 3 end / mark id 1 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x0806 / end actions rss queues 4 5 end / mark id 2 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x8100 / end actions rss queues 6 7 end / mark id 2 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x88f7 / end actions rss queues 9 10 end / mark id 3 / end\"],\n+ \"scapy_str\": L2_Ethertype,\n+ \"check_param\": [\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 0},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 0},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 1},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 1},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 2},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 2},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 2},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 2},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 3},\n+ {\"port_id\": 0, \"queue\": 0}]\n+}\n+\n+tv_l2_ethertype_passthru = {\n+ \"name\": \"test_l2_ethertype_passthru\",\n+ \"rule\": [\n+ \"flow create 0 ingress pattern eth type is 0x8863 / end actions passthru / mark / end\",\n+ \"flow create 0 ingress pattern eth type is 0x8864 / end actions passthru / mark id 1 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x0806 / end actions passthru / mark id 2 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x8100 / end actions passthru / mark id 3 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x88f7 / end actions passthru / mark id 4 / end\"],\n+ \"scapy_str\": L2_Ethertype,\n+ \"check_param\": [\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 0},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 0},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 1},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 1},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 2},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 2},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 3},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 3},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 4},\n+ {\"port_id\": 0, \"queue\": 0}]\n+}\n+\n+tv_l2_ethertype_mark_rss = {\n+ \"name\": \"test_l2_ethertype_mark_rss\",\n+ \"rule\": [\n+ \"flow create 0 ingress pattern eth type is 0x8863 / end actions rss / mark id 0 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x8864 / end actions mark id 1 / rss / end\",\n+ \"flow create 0 ingress pattern eth type is 0x0806 / end actions mark / rss / end\",\n+ \"flow create 0 ingress pattern eth type is 0x8100 / end actions rss / mark / end\",\n+ \"flow create 0 ingress pattern eth type is 0x88f7 / end actions mark id 3 / rss / end\"],\n+ \"scapy_str\": L2_Ethertype,\n+ \"check_param\": [\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 0},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 0},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 1},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 1},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 0},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 0},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 0},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 0},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 3},\n+ {\"port_id\": 0, \"queue\": 0}]\n+}\n+\n+tv_l2_ethertype_mark = {\n+ \"name\": \"test_l2_ethertype_mark\",\n+ \"rule\": [\n+ \"flow create 0 ingress pattern eth type is 0x8863 / end actions mark id 0 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x8864 / end actions mark id 1 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x0806 / end actions mark id 2 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x8100 / end actions mark id 2 / end\",\n+ \"flow create 0 ingress pattern eth type is 0x88f7 / end actions mark / end\"],\n+ \"scapy_str\": L2_Ethertype,\n+ \"check_param\": [\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 0},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 0},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 1},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 1},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 2},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 2},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 2},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 2},\n+ {\"port_id\": 0, \"queue\": 0, \"mark_id\": 0},\n+ {\"port_id\": 0, \"queue\": 0}]\n+}\n+\n+tv_l2_ethertype_drop = {\n+ \"name\": \"test_l2_ethertype_drop\",\n+ \"rule\": [\n+ \"flow create 0 ingress pattern eth type is 0x8863 / end actions drop / end\",\n+ \"flow create 0 ingress pattern eth type is 0x8864 / end actions drop / end\",\n+ \"flow create 0 ingress pattern eth type is 0x0806 / end actions drop / end\",\n+ \"flow create 0 ingress pattern eth type is 0x8100 / end actions drop / end\",\n+ \"flow create 0 ingress pattern eth type is 0x88f7 / end actions drop / end\"],\n+ \"scapy_str\": L2_Ethertype,\n+ \"check_param\": [\n+ {\"port_id\": 0, \"drop\": 1},\n+ {\"port_id\": 0, \"drop\": 1},\n+ {\"port_id\": 0, \"drop\": 1},\n+ {\"port_id\": 0, \"drop\": 1},\n+ {\"port_id\": 0, \"drop\": 1},\n+ {\"port_id\": 0, \"drop\": 1},\n+ {\"port_id\": 0, \"drop\": 1},\n+ {\"port_id\": 0, \"drop\": 1},\n+ {\"port_id\": 0, \"drop\": 1},\n+ {\"port_id\": 0, \"queue\": 0}]\n+}\n+\n+vectors_l2_ethertype = [tv_l2_ethertype_queue_index,\n+ tv_l2_ethertype_queue_group,\n+ tv_l2_ethertype_passthru,\n+ tv_l2_ethertype_drop,\n+ tv_l2_ethertype_mark_rss,\n+ tv_l2_ethertype_mark]\n \n class TestCVLFdir(TestCase):\n \n@@ -1306,6 +1456,36 @@ class TestCVLFdir(TestCase):\n failed_cases.append(k)\n self.verify(all(test_results.values()), \"{} failed.\".format(failed_cases))\n \n+ def _multirules_process(self, vectors, port_id=0):\n+ # create rules on only one port\n+ test_results = {}\n+ rule_li = []\n+ for tv in vectors:\n+ try:\n+ port_id = port_id\n+ pkts=tv[\"scapy_str\"]\n+ check_param=tv[\"check_param\"]\n+ self.destroy_fdir_rule(rule_id=rule_li, port_id=port_id)\n+\n+ # validate rules and create rules\n+ rule_li = self.create_fdir_rule(tv[\"rule\"], check_stats=True)\n+\n+ for i in range(len(pkts)):\n+ port_id = check_param[i][\"port_id\"]\n+ out = self.send_pkts_getouput(pkts=pkts[i], drop=check_param[i].get(\"drop\"))\n+ rfc.check_mark(out, pkt_num=1, check_param=check_param[i])\n+ test_results[tv[\"name\"]] = True\n+ print((GREEN(\"case passed: %s\" % tv[\"name\"])))\n+ except Exception as e:\n+ print((RED(e)))\n+ test_results[tv[\"name\"]] = False\n+ continue\n+ failed_cases = []\n+ for k, v in list(test_results.items()):\n+ if not v:\n+ failed_cases.append(k)\n+ self.verify(all(test_results.values()), \"{} failed.\".format(failed_cases))\n+\n def set_up_all(self):\n \"\"\"\n Run at the start of each test suite.\n@@ -1705,15 +1885,22 @@ class TestCVLFdir(TestCase):\n self.check_fdir_rule(stats=True, rule_list=rule_li)\n \n def test_conflicted_rules(self):\n- rule1 = \"flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / end actions queue index 1 / end\"\n+ rule1 = [\n+ 'flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / end actions queue index 1 / end',\n+ 'flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 / end actions queue index 1 / mark / end']\n rule_li = self.create_fdir_rule(rule1, check_stats=True)\n rule2 = [\n \"flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / end actions queue index 2 / end\",\n \"flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / end actions drop / end\",\n+ 'flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 / end actions queue index 2 / mark / end',\n+ 'flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 / end actions rss queues 2 3 end / mark / end',\n 'flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.21 ttl is 2 tos is 4 / end actions queue index 3 / mark / end',\n- 'flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / udp src is 22 dst is 23 / end actions queue index 3 / mark / end']\n- self.create_fdir_rule(rule2[0:2], check_stats=False, msg=\"Rule already exists!: File exists\", validate=False)\n- self.create_fdir_rule(rule2[2:], check_stats=False, msg=\"Invalid input action number: Invalid argument\", validate=False)\n+ 'flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / udp src is 22 dst is 23 / end actions queue index 3 / mark / end',\n+ 'flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2021 / end actions mark / end',\n+ 'flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 / udp src is 22 dst is 23 / end actions queue index 1 / mark / end']\n+ self.create_fdir_rule(rule2[0:4], check_stats=False, msg=\"Rule already exists!: File exists\", validate=False)\n+ self.create_fdir_rule(rule2[4:7], check_stats=False, msg=\"Invalid input action number: Invalid argument\", validate=False)\n+ self.create_fdir_rule(rule2[7:], check_stats=False, msg=\"Invalid input set: Invalid argument\", validate=False)\n self.check_fdir_rule(stats=True, rule_list=rule_li)\n \n def test_conflicted_actions(self):\n@@ -2091,7 +2278,7 @@ class TestCVLFdir(TestCase):\n eal_param = self.dut.create_eal_parameters(cores=\"1S/4C/1T\", ports=[self.pci0 + \",flow-mark-support=1\",\n self.pci1 + \",flow-mark-support=1\"],\n socket=self.ports_socket)\n- param = \" -- -i --portmask=%s --rxq=%d --txq=%d --port-topology=loop --cmdline-file=%s\" % (\n+ param = \" --log-level='ice,7' -- -i --portmask=%s --rxq=%d --txq=%d --port-topology=loop --cmdline-file=%s\" % (\n self.portMask, 64, 64, cmd_path)\n command_line = self.dut.target + \"/app/testpmd \" + eal_param + param\n out = self.dut.send_expect(command_line, 'testpmd>', timeout=600)\n@@ -2197,7 +2384,7 @@ class TestCVLFdir(TestCase):\n out = self.pmd_output.start_testpmd(cores=\"1S/4C/1T\",\n param=\"--portmask=%s --rxq=%d --txq=%d --port-topology=loop --cmdline-file=%s\" % (\n self.portMask, 64, 64, cmd_path),\n- eal_param=\"-w %s,flow-mark-support=1 -w %s,flow-mark-support=1\" % (\n+ eal_param=\"-w %s,flow-mark-support=1 -w %s,flow-mark-support=1 --log-level='ice,7'\" % (\n self.pci0, self.pci1), socket=self.ports_socket)\n self.verify('Failed to create flow' not in out, \"create some rule failed\")\n self.config_testpmd()\n@@ -2271,6 +2458,15 @@ class TestCVLFdir(TestCase):\n def test_mac_ipv4_gtpu(self):\n self._rte_flow_validate(vectors_mac_ipv4_gtpu)\n \n+ def test_l2_ethertype(self):\n+ self._multirules_process(vectors_l2_ethertype)\n+\n+ def test_unsupported_ethertype(self):\n+ rule = ['flow create 0 ingress pattern eth type is 0x0800 / end actions queue index 1 / end',\n+ 'flow create 0 ingress pattern eth type is 0x86dd / end actions queue index 1 / end']\n+ self.create_fdir_rule(rule, check_stats=True, msg=\"Succeeded to create (2) flow\")\n+ self.check_fdir_rule(stats=True)\n+\n def tear_down(self):\n # destroy all flow rule on port 0\n self.dut.send_command(\"flow flush 0\", timeout=1)\n", "prefixes": [ "V1", "2/2" ] }{ "id": 75161, "url": "