Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/125974/?format=api
https://patches.dpdk.org/api/patches/125974/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20230413020417.1413199-2-yux.jiang@intel.com/", "project": { "id": 3, "url": "https://patches.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<20230413020417.1413199-2-yux.jiang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20230413020417.1413199-2-yux.jiang@intel.com", "date": "2023-04-13T02:04:17", "name": "[V1] tests/ice_dcf_switch_filter: sync test_negative_case with testplan", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "e404dea5ca16060b3265d45e64fc62e111d7c245", "submitter": { "id": 1709, "url": "https://patches.dpdk.org/api/people/1709/?format=api", "name": "Yu Jiang", "email": "yux.jiang@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/20230413020417.1413199-2-yux.jiang@intel.com/mbox/", "series": [ { "id": 27685, "url": "https://patches.dpdk.org/api/series/27685/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=27685", "date": "2023-04-13T02:04:17", "name": "[V1] tests/ice_dcf_switch_filter: sync test_negative_case with testplan", "version": 1, "mbox": "https://patches.dpdk.org/series/27685/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/125974/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/125974/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 EF7F34292C;\n\tThu, 13 Apr 2023 04:04:26 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id EA97E40A84;\n\tThu, 13 Apr 2023 04:04:26 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id 641A54021F\n for <dts@dpdk.org>; Thu, 13 Apr 2023 04:04:25 +0200 (CEST)", "from orsmga005.jf.intel.com ([10.7.209.41])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Apr 2023 19:04:24 -0700", "from unknown (HELO localhost.localdomain) ([10.239.252.196])\n by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Apr 2023 19:04:23 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1681351465; x=1712887465;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=EWbXnbYpe8+tF4U2np8/YIRhVcnifK5SS4Pt0gHALjc=;\n b=m1FOl/QfF+B5/4vxefkKOF8iA8FeGxjJ7imrG/p27dtpF5GG0542pAPF\n ArbMvu1KKg14s6+1G27YdZV8osSE20uoXKAx/udleBp0YWPY1R7cYvu3B\n BxPtjb8ZM6JK6B5r8LFf8UiplYsg6/hZ+qxl6fNo2vegHiv7nXlTId8S0\n Ryhfsy6iv5KvoEgf/Q8qsBEOSwQk8KC9Gu4HdErEfBYDT594Jn7Dh/GMu\n xMcitWBkbYTNjF+E0clgdj594u9KvdYvUxtGVP+H07RhUp1oPoehrqXEH\n XcuWL4ZuGL6DHjGaR/Su3OdodMkP8HDj2KlRMAzq3jbhPgBMAoXXcuuYV g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10678\"; a=\"371918326\"", "E=Sophos;i=\"5.98,339,1673942400\"; d=\"scan'208\";a=\"371918326\"", "E=McAfee;i=\"6600,9927,10678\"; a=\"863536246\"", "E=Sophos;i=\"5.98,339,1673942400\"; d=\"scan'208\";a=\"863536246\"" ], "X-ExtLoop1": "1", "From": "Yu Jiang <yux.jiang@intel.com>", "To": "ke1.xu@intel.com,\n\tdts@dpdk.org", "Cc": "Yu Jiang <yux.jiang@intel.com>", "Subject": "[dts][PATCH V1] tests/ice_dcf_switch_filter: sync test_negative_case\n with testplan", "Date": "Thu, 13 Apr 2023 10:04:17 +0800", "Message-Id": "<20230413020417.1413199-2-yux.jiang@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230413020417.1413199-1-yux.jiang@intel.com>", "References": "<20230413020417.1413199-1-yux.jiang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org" }, "content": "1, sync test_negative_case with testplan, add two subcases:\n Subcase 4: can not create to vf rule to self dcf\n Subcase 17: deprecated action\n2, format.sh script\n\nSigned-off-by: Yu Jiang <yux.jiang@intel.com>\n---\n tests/TestSuite_ice_dcf_switch_filter.py | 26 ++++++++++++++++++++----\n 1 file changed, 22 insertions(+), 4 deletions(-)", "diff": "diff --git a/tests/TestSuite_ice_dcf_switch_filter.py b/tests/TestSuite_ice_dcf_switch_filter.py\nindex 0731199a..f9e5cbf3 100644\n--- a/tests/TestSuite_ice_dcf_switch_filter.py\n+++ b/tests/TestSuite_ice_dcf_switch_filter.py\n@@ -2107,7 +2107,7 @@ tv_mac_ipv4_vxlan_ipv4_udp_pay = {\n ],\n \"matched\": {\n \"scapy_str\": [\n- 'Ether()/IP(dst=\"192.168.0.1\")/UDP()/VXLAN(vni=2)/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/UDP(sport=50,dport=23) /Raw(\"x\"*80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/UDP()/VXLAN(vni=2)/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/UDP(sport=50,dport=23) /Raw(\"x\"*80)'\n ],\n \"check_func\": {\n \"func\": rfc.check_vf_rx_packets_number,\n@@ -2136,7 +2136,7 @@ tv_mac_ipv4_vxlan_ipv4_tcp = {\n ],\n \"matched\": {\n \"scapy_str\": [\n- 'Ether()/IP(dst=\"192.168.0.1\")/UDP()/VXLAN(vni=2)/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/TCP(sport=50,dport=23)/Raw(\"x\"*80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/UDP()/VXLAN(vni=2)/Ether()/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/TCP(sport=50,dport=23)/Raw(\"x\"*80)'\n ],\n \"check_func\": {\n \"func\": rfc.check_vf_rx_packets_number,\n@@ -2233,7 +2233,7 @@ tv_mac_ipv4_vxlan_mac_ipv4_udp_pay = {\n ],\n \"matched\": {\n \"scapy_str\": [\n- 'Ether()/IP(dst=\"192.168.0.1\")/UDP()/VXLAN(vni=2)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/UDP(sport=50,dport=23)/Raw(\"x\" * 80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/UDP()/VXLAN(vni=2)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/UDP(sport=50,dport=23)/Raw(\"x\" * 80)'\n ],\n \"check_func\": {\n \"func\": rfc.check_vf_rx_packets_number,\n@@ -2262,7 +2262,7 @@ tv_mac_ipv4_vxlan_mac_ipv4_tcp = {\n ],\n \"matched\": {\n \"scapy_str\": [\n- 'Ether()/IP(dst=\"192.168.0.1\")/UDP()/VXLAN(vni=2)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+ 'Ether()/IP(dst=\"192.168.0.1\")/UDP()/VXLAN(vni=2)/Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.0.2\", dst=\"192.168.0.3\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)'\n ],\n \"check_func\": {\n \"func\": rfc.check_vf_rx_packets_number,\n@@ -2819,6 +2819,7 @@ class ICEDCFSwitchFilterTest(TestCase):\n \"cannot create to vf rule on a representor\": \"flow create 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 3 / udp src is 25 dst is 23 / end actions represented_port ethdev_port_id 1 / end\",\n \"cannot create to vf rule on a vf\": \"flow create 3 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 3 / udp src is 25 dst is 23 / end actions represented_port ethdev_port_id 1 / end\",\n \"cannot create to vf rule to a vf\": \"flow create 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 3 / udp src is 25 dst is 23 / end actions represented_port ethdev_port_id 3 / end\",\n+ \"cannot create to vf rule to self dcf\": \"flow create 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 3 / udp src is 25 dst is 23 / end actions represented_port ethdev_port_id 0 / end\",\n \"cannot create to vf rule to another dcf\": \"flow create 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 3 / udp src is 25 dst is 23 / end actions represented_port ethdev_port_id 4 / end\",\n \"cannot create to vf rule to a representor of another pf\": \"flow create 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 3 / udp src is 25 dst is 23 / end actions represented_port ethdev_port_id 5 / end\",\n \"cannot create vf original rule on a representor\": \"flow create 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 3 / udp src is 25 dst is 23 / end actions port_representor port_id 1 / end\",\n@@ -2828,6 +2829,7 @@ class ICEDCFSwitchFilterTest(TestCase):\n \"cannot create vf original rule to another dcf\": \"flow create 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 3 / udp src is 25 dst is 23 / end actions port_representor port_id 4 / end\",\n \"unsupported input set\": \"flow create 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 tos is 4 / end actions port_representor port_id 1 / end\",\n \"invalid port id\": \"flow create 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 3 / tcp src is 25 dst is 23 / end actions represented_port ethdev_port_id 20 / end\",\n+ \"deprecated action\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / end actions vf id 1 / end\",\n \"void action\": \"flow create 0 ingress pattern eth / ipv4 / udp src is 25 dst is 23 / end actions end\",\n \"void input set value\": \"flow create 0 ingress pattern eth / ipv4 / end actions represented_port ethdev_port_id 1 end\",\n }\n@@ -2861,6 +2863,16 @@ class ICEDCFSwitchFilterTest(TestCase):\n )\n self.check_switch_filter_rule_list(0, [])\n \n+ self.logger.info(\"Subcase 4: can not create to vf rule to self dcf\")\n+ self.validate_switch_filter_rule(\n+ rules[\"cannot create to vf rule to self dcf\"], check_stats=False\n+ )\n+ self.check_switch_filter_rule_list(0, [])\n+ self.create_switch_filter_rule(\n+ rules[\"cannot create to vf rule to self dcf\"], check_stats=False\n+ )\n+ self.check_switch_filter_rule_list(0, [])\n+\n # cannot create to vf rule to another dcf\n self.validate_switch_filter_rule(\n rules[\"cannot create to vf rule to another dcf\"], check_stats=False\n@@ -2923,6 +2935,12 @@ class ICEDCFSwitchFilterTest(TestCase):\n )\n self.check_switch_filter_rule_list(0, [])\n \n+ self.logger.info(\"Subcase 17: deprecated action\")\n+ self.validate_switch_filter_rule(rules[\"deprecated action\"], check_stats=False)\n+ self.check_switch_filter_rule_list(0, [])\n+ self.create_switch_filter_rule(rules[\"deprecated action\"], check_stats=False)\n+ self.check_switch_filter_rule_list(0, [])\n+\n # unsupported input set\n self.validate_switch_filter_rule(\n rules[\"unsupported input set\"], check_stats=False\n", "prefixes": [ "V1" ] }{ "id": 125974, "url": "