Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/74894/?format=api
https://patches.dpdk.org/api/patches/74894/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/1595943682-1510101-1-git-send-email-nannan.lu@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": "<1595943682-1510101-1-git-send-email-nannan.lu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/1595943682-1510101-1-git-send-email-nannan.lu@intel.com", "date": "2020-07-28T13:41:22", "name": "[V1] tests/TestSuite_cvl_dcf_switch_filter.py: modify max_rule_number test case", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "175d781c0a9aa84fc0eb4ef52f1c244792feb573", "submitter": { "id": 1658, "url": "https://patches.dpdk.org/api/people/1658/?format=api", "name": "Lu, Nannan", "email": "nannan.lu@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/1595943682-1510101-1-git-send-email-nannan.lu@intel.com/mbox/", "series": [ { "id": 11344, "url": "https://patches.dpdk.org/api/series/11344/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=11344", "date": "2020-07-28T13:41:22", "name": "[V1] tests/TestSuite_cvl_dcf_switch_filter.py: modify max_rule_number test case", "version": 1, "mbox": "https://patches.dpdk.org/series/11344/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/74894/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/74894/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 E77ADA0521;\n\tTue, 28 Jul 2020 06:49:24 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A01CF1BFF4;\n\tTue, 28 Jul 2020 06:49:24 +0200 (CEST)", "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by dpdk.org (Postfix) with ESMTP id 5441D2B9C\n for <dts@dpdk.org>; Tue, 28 Jul 2020 06:49:22 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 27 Jul 2020 21:49:21 -0700", "from dpdk-lunannan.sh.intel.com ([10.67.111.68])\n by orsmga001.jf.intel.com with ESMTP; 27 Jul 2020 21:49:19 -0700" ], "IronPort-SDR": [ "\n 4VYhIbCi3UtQxfsw1etOm1ZytZb9T4By3cxEKYXSKImfCXTAEl3K/iQz2VncJ6V0KcXE9N/pkm\n I9/aqpKo9Y8A==", "\n eQiducEzBtLzCVCIqAJvNH+ylRH7UCPLT/1IylMNuvM8ZlswPt1jsrsndyErq/v8gKulz5ZQEO\n jhOE4AhGWHkA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9695\"; a=\"131215051\"", "E=Sophos;i=\"5.75,405,1589266800\"; d=\"scan'208\";a=\"131215051\"", "E=Sophos;i=\"5.75,405,1589266800\"; d=\"scan'208\";a=\"364363978\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Nannan Lu <nannan.lu@intel.com>", "To": "dts@dpdk.org", "Cc": "Nannan Lu <nannan.lu@intel.com>", "Date": "Tue, 28 Jul 2020 13:41:22 +0000", "Message-Id": "<1595943682-1510101-1-git-send-email-nannan.lu@intel.com>", "X-Mailer": "git-send-email 2.7.4", "Subject": "[dts] [PATCH V1] tests/TestSuite_cvl_dcf_switch_filter.py: modify\n\tmax_rule_number test case", "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": "Modify max_rule_number test case, since the max switch filter rule number\nwhich can be created will be changed if firmware or kernel driver changed.\n\nSigned-off-by: Nannan Lu <nannan.lu@intel.com>\n---\n tests/TestSuite_cvl_dcf_switch_filter.py | 29 ++++++++++++++++++++++++-----\n 1 file changed, 24 insertions(+), 5 deletions(-)", "diff": "diff --git a/tests/TestSuite_cvl_dcf_switch_filter.py b/tests/TestSuite_cvl_dcf_switch_filter.py\nindex afb6a28..c15fd31 100644\n--- a/tests/TestSuite_cvl_dcf_switch_filter.py\n+++ b/tests/TestSuite_cvl_dcf_switch_filter.py\n@@ -855,7 +855,7 @@ tv_add_two_rules_with_different_input_set_different_vf_id = {\n \"expect_results\":{\"expect_pkts\":[0, 0]}}\n }\n \n-class SwitchFilterTest(TestCase):\n+class CVLDCFSwitchFilterTest(TestCase):\n \n def bind_nics_driver(self, ports, driver=\"\"):\n # modprobe vfio driver\n@@ -1677,10 +1677,29 @@ class SwitchFilterTest(TestCase):\n rule_list_num = list(range(0, 32563))\n rule_list = [str(x) for x in rule_list_num]\n self.check_switch_filter_rule_list(0, rule_list)\n- #create the 32564th rule\n- rule = \"flow create 0 ingress pattern eth / ipv4 src is 192.168.127.178 / end actions vf id 1 / end\"\n- out = self.dut.send_expect(rule, \"testpmd> \", timeout=2)\n- self.verify(\"Failed to create flow\" in out, \"Log not provide a friendly output to indicate that the rule failed to create.\")\n+ #create other rules to make switch filter table full\n+ m = i\n+ t = j\n+ p = re.compile(r\"Flow rule #(\\d+) created\")\n+ switch_table_full_flag = False\n+ count = 0\n+ for i in range(m,255):\n+ for j in range(t,255):\n+ rule = 'flow create 0 ingress pattern eth / ipv4 src is 192.168.%d.%d / end actions vf id 1 / end \\n' % (i, j)\n+ matched_packet = 'Ether(dst=\"68:05:ca:8d:ed:a8\")/IP(src=\"192.168.%d.%d\")/TCP(sport=25,dport=23)/Raw(\"X\"*480)' % (i, j)\n+ out = self.dut.send_expect(rule, \"testpmd> \", timeout=2) #create a rule\n+ m1 = p.search(out)\n+ if m1:\n+ rule_list.append(m1.group(1))\n+ tv_max_rule_number[\"matched\"][\"scapy_str\"].append(matched_packet)\n+ count += 1\n+ else:\n+ self.verify(\"Failed to create flow\" in out, \"Log not provide a friendly output to indicate that the rule failed to create.\")\n+ switch_table_full_flag = True\n+ break\n+ if switch_table_full_flag:\n+ break\n+ tv_max_rule_number[\"matched\"][\"expect_results\"][\"expect_pkts\"] += count\n #check the rule list\n self.check_switch_filter_rule_list(0, rule_list)\n #send matched packets and check\n", "prefixes": [ "V1" ] }{ "id": 74894, "url": "