Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/113991/?format=api
https://patches.dpdk.org/api/patches/113991/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20220718025447.13287-1-weiyuanx.li@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": "<20220718025447.13287-1-weiyuanx.li@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20220718025447.13287-1-weiyuanx.li@intel.com", "date": "2022-07-18T02:54:36", "name": "[V1,01/12] tests/kernelpf_iavf: update dts code for dpdk csum change", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "b3f2a5254ca3d92e2604d019086a4f78e21cc3ee", "submitter": { "id": 2477, "url": "https://patches.dpdk.org/api/people/2477/?format=api", "name": "Weiyuan Li", "email": "weiyuanx.li@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/20220718025447.13287-1-weiyuanx.li@intel.com/mbox/", "series": [ { "id": 24009, "url": "https://patches.dpdk.org/api/series/24009/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=24009", "date": "2022-07-18T02:54:36", "name": "[V1,01/12] tests/kernelpf_iavf: update dts code for dpdk csum change", "version": 1, "mbox": "https://patches.dpdk.org/series/24009/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/113991/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/113991/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 E708EA0547;\n\tMon, 18 Jul 2022 04:55:03 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E15FE40F1A;\n\tMon, 18 Jul 2022 04:55:03 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id 0DCE240F1A\n for <dts@dpdk.org>; Mon, 18 Jul 2022 04:55:01 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Jul 2022 19:55:01 -0700", "from unknown (HELO localhost.localdomain) ([10.239.252.248])\n by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Jul 2022 19:54:59 -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=1658112902; x=1689648902;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=jv6l9W3NV6ua1X3Qyn2u82FufPwb5+9EDAtmTEx2FNM=;\n b=BgthZ2psBPD3dAVBGqQ/sAPZ3ysWyt29BS/UjJrPizqdjajBffDfBGq9\n 1z8hPDHFSxI5RPYB9LpEZABYLs81rVq7Pi1ZK/413VPu/iwELz3GGgxNq\n X679IbIJJ8dLvsKjyvqN0Tvx2tsCXcGYG4g/vSEn9IudbuS9dLJ5UqSl4\n f/PsMsjHXh6yBIo9VfiXE2ITrUIwwYdLzNCiGveAah7HGGWL8PUZALCn6\n hv6cRLUcoxIqDAFCkE43wLzKAIDKWxcJkeXfZkc8GaubIsKUNTVOemMNT\n WOzkvoTwTb3J36OVEkXs75r29fcZhCbNK7KO6clqSyqdZn74rF6rrkZez A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10411\"; a=\"311796677\"", "E=Sophos;i=\"5.92,280,1650956400\"; d=\"scan'208\";a=\"311796677\"", "E=Sophos;i=\"5.92,280,1650956400\"; d=\"scan'208\";a=\"624541942\"" ], "From": "Weiyuan Li <weiyuanx.li@intel.com>", "To": "dts@dpdk.org,\n\tyuan.peng@intel.com", "Cc": "Weiyuan Li <weiyuanx.li@intel.com>", "Subject": "[dts][PATCH V1 01/12] tests/kernelpf_iavf: update dts code for dpdk\n csum change", "Date": "Mon, 18 Jul 2022 10:54:36 +0800", "Message-Id": "<20220718025447.13287-1-weiyuanx.li@intel.com>", "X-Mailer": "git-send-email 2.27.0", "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": "According to dpdk commit 9b4ea7ae77fa(app/testpmd: revert MAC update in checksum forwarding) modify\nthe script adapt to this chagne.\n\n1. Modify VF case to enable promisc.\n2. Modify PF case to send packet dst mac is random.\n\nSigned-off-by: Weiyuan Li <weiyuanx.li@intel.com>\n---\n tests/TestSuite_kernelpf_iavf.py | 46 ++++++++++++++++++++++++++++++--\n 1 file changed, 44 insertions(+), 2 deletions(-)", "diff": "diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py\nindex d7d17ac4..57944770 100644\n--- a/tests/TestSuite_kernelpf_iavf.py\n+++ b/tests/TestSuite_kernelpf_iavf.py\n@@ -75,6 +75,14 @@ class TestKernelpfIavf(TestCase):\n self.flag = \"vf-vlan-pruning\"\n self.default_stats = self.dut.get_priv_flags_state(self.host_intf, self.flag)\n \n+ def ip_link_set(self, host_intf=None, cmd=None, port=None, types=None, value=0):\n+ if host_intf is None or cmd is None or port is None or types is None:\n+ return\n+ set_command = f\"ip link set {host_intf} {cmd} {port} {types} {value}\"\n+ out = self.dut.send_expect(set_command, \"# \")\n+ if \"RTNETLINK answers: Invalid argument\" in out:\n+ self.dut.send_expect(set_command, \"# \")\n+\n def set_up(self):\n \n if self.running_case == \"test_vf_mac_filter\":\n@@ -120,6 +128,22 @@ class TestKernelpfIavf(TestCase):\n \"ip link set %s vf 0 mac %s\" % (self.host_intf, self.vf_mac), \"# \"\n )\n \n+ if self.running_case == \"test_vf_tso\":\n+ self.host_intf_0 = self.dut.ports_info[self.used_dut_port][\"intf\"]\n+ self.ip_link_set(\n+ host_intf=self.host_intf_0,\n+ cmd=\"vf\",\n+ port=0,\n+ types=\"trust\",\n+ value=\"on\",\n+ )\n+ self.ip_link_set(\n+ host_intf=self.host_intf_0,\n+ cmd=\"vf\",\n+ port=0,\n+ types=\"spoofchk\",\n+ value=\"off\",\n+ )\n try:\n \n for port in self.sriov_vfs_port:\n@@ -656,9 +680,10 @@ class TestKernelpfIavf(TestCase):\n self.tester.scapy_foreground()\n time.sleep(5)\n self.start_tcpdump(self.tester_intf)\n+ vf_mac = \"00:01:23:45:67:80\"\n pkt = (\n- 'sendp([Ether(dst=\"%s\")/IP(chksum=0x1234)/TCP(flags=0x10,chksum=0x1234)/'\n- 'Raw(RandString(5214))], iface=\"%s\")' % (self.vf_mac, self.tester_intf)\n+ 'sendp([Ether(dst=\"%s\", src=\"52:00:00:00:00:00\")/IP(chksum=0x1234)/TCP(flags=0x10,chksum=0x1234)/'\n+ 'Raw(RandString(5214))], iface=\"%s\")' % (vf_mac, self.tester_intf)\n )\n self.tester.scapy_append(pkt)\n self.tester.scapy_execute()\n@@ -927,6 +952,23 @@ class TestKernelpfIavf(TestCase):\n self.destroy_vm_env()\n self.dut.send_expect(\"ip link set dev %s vf 0 trust off\" % self.host_intf, \"# \")\n \n+ if self.running_case == \"test_vf_tso\":\n+ self.host_intf_0 = self.dut.ports_info[self.used_dut_port][\"intf\"]\n+ self.ip_link_set(\n+ host_intf=self.host_intf_0,\n+ cmd=\"vf\",\n+ port=0,\n+ types=\"trust\",\n+ value=\"off\",\n+ )\n+ self.ip_link_set(\n+ host_intf=self.host_intf_0,\n+ cmd=\"vf\",\n+ port=0,\n+ types=\"spoofchk\",\n+ value=\"on\",\n+ )\n+\n def tear_down_all(self):\n \"\"\"\n When the case of this test suite finished, the environment should\n", "prefixes": [ "V1", "01/12" ] }{ "id": 113991, "url": "