Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/111662/?format=api
http://patches.dpdk.org/api/patches/111662/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/20220524021232.32762-1-zhiminx.huang@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": "<20220524021232.32762-1-zhiminx.huang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20220524021232.32762-1-zhiminx.huang@intel.com", "date": "2022-05-24T02:12:28", "name": "[V1,1/5] tests/rte_flow_common:modify check mismatch pkts test", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "219241335762fea5986e6b989f3954be6d45b838", "submitter": { "id": 1685, "url": "http://patches.dpdk.org/api/people/1685/?format=api", "name": "Huang, ZhiminX", "email": "zhiminx.huang@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dts/patch/20220524021232.32762-1-zhiminx.huang@intel.com/mbox/", "series": [ { "id": 23105, "url": "http://patches.dpdk.org/api/series/23105/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=23105", "date": "2022-05-24T02:12:28", "name": "[V1,1/5] tests/rte_flow_common:modify check mismatch pkts test", "version": 1, "mbox": "http://patches.dpdk.org/series/23105/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/111662/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/111662/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 E2796A04FF;\n\tTue, 24 May 2022 04:12:59 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B8EDE4067C;\n\tTue, 24 May 2022 04:12:59 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id B58394014F\n for <dts@dpdk.org>; Tue, 24 May 2022 04:12:58 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 May 2022 19:12:38 -0700", "from unknown (HELO daily-regression-131.intel.com)\n ([10.239.251.131])\n by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 May 2022 19:12:36 -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=1653358378; x=1684894378;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=Al+Wqa/OA9kBnLFlHtV15ycYf6+z+D/Zc/k9o73bSXU=;\n b=d829hpHKtULM2IpkAOIYfxYbxHWel5xdh+mCAMq+CmtxSeX7siSmWtW0\n na94kT7uq2vzsMWtb2vRIjYtx+xzugTAP6Ks7MzN2Bo8t8Lt3ghPzy0tv\n CUtRvWsk8IhL62/tQslPbsH9hK1CEt0OLR/UcllmORZscvWOyFs2BhxYU\n DOImbxabeCcm58A/fYk/us3PbZSxacEZtP5C5SotV5D+u65WZfrA2vVHu\n /I+wQhtpd6ptj/3CUj5A7GxwHKdm82wbgNPEjv+thp8pq2Kw7yTzs1MMI\n rjyEeSS4ntS/rK9E54dpnNuFagJ/hbkmX07PXvC2OwqDSap1/+pxCNARG w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10356\"; a=\"273133538\"", "E=Sophos;i=\"5.91,247,1647327600\"; d=\"scan'208\";a=\"273133538\"", "E=Sophos;i=\"5.91,247,1647327600\"; d=\"scan'208\";a=\"600981813\"" ], "From": "Zhimin Huang <zhiminx.huang@intel.com>", "To": "dts@dpdk.org", "Cc": "Zhimin Huang <zhiminx.huang@intel.com>", "Subject": "[dts][PATCH V1 1/5] tests/rte_flow_common:modify check mismatch pkts\n test", "Date": "Tue, 24 May 2022 10:12:28 +0800", "Message-Id": "<20220524021232.32762-1-zhiminx.huang@intel.com>", "X-Mailer": "git-send-email 2.25.1", "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": "For ipfragment test,the mismatch pkt no need to send with fragment.\nso modify rte_flow_common to adapt test steps changed.\n\nSigned-off-by: Zhimin Huang <zhiminx.huang@intel.com>\n---\n tests/rte_flow_common.py | 11 ++++++-----\n 1 file changed, 6 insertions(+), 5 deletions(-)", "diff": "diff --git a/tests/rte_flow_common.py b/tests/rte_flow_common.py\nindex 45446521..dfd56d2a 100644\n--- a/tests/rte_flow_common.py\n+++ b/tests/rte_flow_common.py\n@@ -1389,14 +1389,15 @@ class FdirProcessing(object):\n self.verify = self.test_case.verify\n self.ipfrag_flag = ipfrag_flag\n \n- def send_pkt_get_output(self, pkts, port_id=0, count=1, interval=0, drop=False):\n+ def send_pkt_get_output(self, pkts, port_id=0, count=1, interval=0, drop=False, **kwargs):\n tx_port = self.tester_ifaces[0] if port_id == 0 else self.tester_ifaces[1]\n self.logger.info(\"----------send packet-------------\")\n self.logger.info(\"{}\".format(pkts))\n+ mismatch_flag = kwargs.get(\"mismatch\")\n if drop:\n self.pmd_output.execute_cmd(\"clear port stats all\")\n time.sleep(1)\n- if self.ipfrag_flag == True:\n+ if self.ipfrag_flag == True and not mismatch_flag:\n send_ipfragment_pkt(self.test_case, pkts, tx_port)\n else:\n self.pkt.update_pkt(pkts)\n@@ -1410,7 +1411,7 @@ class FdirProcessing(object):\n self.pmd_output.execute_cmd(\"start\")\n return out\n else:\n- if self.ipfrag_flag == True:\n+ if self.ipfrag_flag == True and not mismatch_flag:\n count = 2\n send_ipfragment_pkt(self.test_case, pkts, tx_port)\n else:\n@@ -1623,11 +1624,11 @@ class FdirProcessing(object):\n \n # send and check unmatched packets\n out2 = self.send_pkt_get_output(\n- pkts=tv[\"scapy_str\"][\"unmatched\"], port_id=port_id, drop=drop\n+ pkts=tv[\"scapy_str\"][\"unmatched\"], port_id=port_id, drop=drop, mismatch=True\n )\n check_mark(\n out2,\n- pkt_num=len(tv[\"scapy_str\"][\"unmatched\"]) * 2\n+ pkt_num=len(tv[\"scapy_str\"][\"unmatched\"])\n if self.ipfrag_flag\n else len(tv[\"scapy_str\"][\"unmatched\"]),\n check_param=tv[\"check_param\"],\n", "prefixes": [ "V1", "1/5" ] }{ "id": 111662, "url": "