Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/87466/?format=api
https://patches.dpdk.org/api/patches/87466/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/1611821671-70247-1-git-send-email-hailinx.xu@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": "<1611821671-70247-1-git-send-email-hailinx.xu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/1611821671-70247-1-git-send-email-hailinx.xu@intel.com", "date": "2021-01-28T08:14:31", "name": "[v1] tests/kernelpf_iavf:align with dpdk rss code", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "a3da4c85e9f27580a88ad56271b8fa6789f32d5b", "submitter": { "id": 1704, "url": "https://patches.dpdk.org/api/people/1704/?format=api", "name": "hailinx", "email": "hailinx.xu@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/1611821671-70247-1-git-send-email-hailinx.xu@intel.com/mbox/", "series": [ { "id": 14993, "url": "https://patches.dpdk.org/api/series/14993/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=14993", "date": "2021-01-28T08:14:31", "name": "[v1] tests/kernelpf_iavf:align with dpdk rss code", "version": 1, "mbox": "https://patches.dpdk.org/series/14993/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/87466/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/87466/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 D53C4A09E4;\n\tThu, 28 Jan 2021 09:25:03 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CCEB51889CD;\n\tThu, 28 Jan 2021 09:25:03 +0100 (CET)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 956E01889CD\n for <dts@dpdk.org>; Thu, 28 Jan 2021 09:25:02 +0100 (CET)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Jan 2021 00:24:53 -0800", "from unknown (HELO dpdk-huangzm-d.sh.intel.com) ([10.240.183.72])\n by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Jan 2021 00:24:51 -0800" ], "IronPort-SDR": [ "\n Ks051eNP9HsLOqymJEx2XXsO7GlF7NlUj6ePlHKwiRNQ+8+nUZCC2Vy0fJScT76QkY5GUENRuF\n RH3eBvWNyWKQ==", "\n aFBOHEFbTTbc8EoV0GPlzoZlP4m2AVqUa/pilpZm7D+FIVB2M8/pnOmvo8vbPVGv3F0vOtc8TP\n hm9Iyf8mMIkQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9877\"; a=\"265029544\"", "E=Sophos;i=\"5.79,381,1602572400\"; d=\"scan'208\";a=\"265029544\"", "E=Sophos;i=\"5.79,381,1602572400\"; d=\"scan'208\";a=\"362775852\"" ], "From": "Hailin Xu <hailinx.xu@intel.com>", "To": "dts@dpdk.org", "Cc": "Hailin Xu <hailinx.xu@intel.com>", "Date": "Thu, 28 Jan 2021 16:14:31 +0800", "Message-Id": "<1611821671-70247-1-git-send-email-hailinx.xu@intel.com>", "X-Mailer": "git-send-email 1.8.3.1", "Subject": "[dts] [PATCH v1] tests/kernelpf_iavf:align with dpdk rss code", "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", "Sender": "\"dts\" <dts-bounces@dpdk.org>" }, "content": "iavf/i40evf: Default RSS should be overwritten but not append after.\n\nSigned-off-by: Hailin Xu <hailinx.xu@intel.com>\n---\n tests/TestSuite_kernelpf_iavf.py | 35 +++++++++++---------------------\n 1 file changed, 12 insertions(+), 23 deletions(-)", "diff": "diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py\nindex 2fed9b7f..1dcbc685 100644\n--- a/tests/TestSuite_kernelpf_iavf.py\n+++ b/tests/TestSuite_kernelpf_iavf.py\n@@ -631,31 +631,20 @@ class TestKernelpfIavf(TestCase):\n self.verify(rx_err == 1 or tx_pkts == -1, \"Packet drop assert error\")\n \n def test_vf_rss(self):\n+ rss_type = [\"ip\", \"tcp\", \"udp\"]\n self.vm_testpmd.start_testpmd(\"all\", \"--txq=4 --rxq=4\")\n self.vm_testpmd.execute_cmd(\"set fwd mac\")\n self.vm_testpmd.execute_cmd(\"set verbose 1\")\n for i, j in zip(list(range(64)), [0, 1, 2, 3]*16):\n self.vm_testpmd.execute_cmd(\"port config 0 rss reta (%d,%d)\" % (i, j))\n- self.vm_testpmd.execute_cmd(\"port config all rss ip\")\n- self.vm_testpmd.execute_cmd(\"port config all rss tcp\")\n- self.vm_testpmd.execute_cmd(\"port config all rss udp\")\n- self.vm_testpmd.execute_cmd(\"start\")\n- self.send_packet(self.tester_intf, 'IPV4')\n- time.sleep(2)\n- out = self.vm_dut.get_session_output()\n- self.verify_packet_number(out)\n-\n- self.vm_testpmd.execute_cmd(\"clear port stats all\")\n- self.send_packet(self.tester_intf, 'IPV4&TCP')\n- time.sleep(2)\n- out = self.vm_dut.get_session_output()\n- self.verify_packet_number(out)\n-\n- self.vm_testpmd.execute_cmd(\"clear port stats all\")\n- self.send_packet(self.tester_intf, 'IPV4&UDP')\n- time.sleep(2)\n- out = self.vm_dut.get_session_output()\n- self.verify_packet_number(out)\n+ for type in rss_type:\n+ self.vm_testpmd.execute_cmd(\"port config all rss %s\" % type)\n+ self.vm_testpmd.execute_cmd(\"start\")\n+ self.send_packet(self.tester_intf, 'IPV4&%s' % type)\n+ time.sleep(1)\n+ out = self.vm_dut.get_session_output()\n+ self.verify_packet_number(out)\n+ self.vm_testpmd.execute_cmd(\"clear port stats all\")\n \n def verify_packet_number(self, out):\n queue0_number = len(re.findall('port 0/queue 0', out))\n@@ -672,21 +661,21 @@ class TestKernelpfIavf(TestCase):\n \"\"\"\n mac = self.vf_mac\n # send packet with different source and dest ip\n- if tran_type == \"IPV4\":\n+ if tran_type == \"IPV4&ip\":\n for i in range(30):\n packet = r'sendp([Ether(dst=\"%s\", src=\"02:00:00:00:00:00\")/IP(src=\"192.168.0.%d\", '\\\n 'dst=\"192.168.0.%d\")], iface=\"%s\")' % (mac, i + 1, i + 2, itf)\n self.tester.scapy_append(packet)\n self.tester.scapy_execute()\n time.sleep(.5)\n- elif tran_type == \"IPV4&TCP\":\n+ elif tran_type == \"IPV4&tcp\":\n for i in range(30):\n packet = r'sendp([Ether(dst=\"%s\", src=\"02:00:00:00:00:00\")/IP(src=\"192.168.0.%d\", dst=\"192.168.0.%d\")/'\\\n 'TCP(sport=1024,dport=1024)], iface=\"%s\")' % (mac, i + 1, i + 2, itf)\n self.tester.scapy_append(packet)\n self.tester.scapy_execute()\n time.sleep(.5)\n- elif tran_type == \"IPV4&UDP\":\n+ elif tran_type == \"IPV4&udp\":\n for i in range(30):\n packet = r'sendp([Ether(dst=\"%s\", src=\"02:00:00:00:00:00\")/IP(src=\"192.168.0.%d\", dst=\"192.168.0.%d\")/'\\\n 'UDP(sport=1024,dport=1024)], iface=\"%s\")' % (mac, i + 1, i + 2, itf)\n", "prefixes": [ "v1" ] }{ "id": 87466, "url": "