get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/115639/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 115639,
    "url": "http://patches.dpdk.org/api/patches/115639/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20220830024740.26250-8-weiyuanx.li@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": "<20220830024740.26250-8-weiyuanx.li@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220830024740.26250-8-weiyuanx.li@intel.com",
    "date": "2022-08-30T02:47:38",
    "name": "[V3,08/10] tests/ice_iavf_fdir: update dts code for dpdk csum change",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "f91f52dbf55389e5723ae6bce155d69b8ce1b364",
    "submitter": {
        "id": 2477,
        "url": "http://patches.dpdk.org/api/people/2477/?format=api",
        "name": "Weiyuan Li",
        "email": "weiyuanx.li@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20220830024740.26250-8-weiyuanx.li@intel.com/mbox/",
    "series": [
        {
            "id": 24462,
            "url": "http://patches.dpdk.org/api/series/24462/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=24462",
            "date": "2022-08-30T02:47:31",
            "name": "[V3,01/10] tests/vf_offload: update dts code for dpdk csum change",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/24462/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/115639/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/115639/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 797ECA034C;\n\tTue, 30 Aug 2022 04:47:49 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 748B940F35;\n\tTue, 30 Aug 2022 04:47:49 +0200 (CEST)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id C52E240F17\n for <dts@dpdk.org>; Tue, 30 Aug 2022 04:47:47 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 29 Aug 2022 19:47:42 -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 29 Aug 2022 19:47:41 -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=1661827667; x=1693363667;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=vnmLSOBaxnCHpUMX+LjQEPEZwyzbs3LGiA77yu6BmSY=;\n b=fxqi31fIP9bKXTymx6hu1/47KTriJojrbVgbAuCv5sMOF4xgUgeL0Ah6\n 3JYeMKvn7zKBS0nb79A2YxiAKKFSx2zilh3gy7RWi/LTQI7VW7jeFZaFq\n zHqUHc7Wzzx4cbC4OEPptJ3o3fEJLwREfpplTALR/dyWhTsNVzdNlB0Wt\n oi9R4W7jsMXMtU+wyfxbms5GODrtyLPTCM0hDYe0KnkX1VYJTR+oNZe6L\n h70UOw5xUp2ejawASgMAYFwc0xQJx9XU4wl/xVsMU9KzM4NQx9Zg121tA\n PbvLv5bT6Ylx2Rswh7ejkzJxH1G/DwjX4sXxAUiJ3an5bIPswjjc2zMuB g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10454\"; a=\"359024468\"",
            "E=Sophos;i=\"5.93,274,1654585200\"; d=\"scan'208\";a=\"359024468\"",
            "E=Sophos;i=\"5.93,274,1654585200\"; d=\"scan'208\";a=\"641181941\""
        ],
        "From": "Weiyuan Li <weiyuanx.li@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Weiyuan Li <weiyuanx.li@intel.com>,\n\tJiale Song <songx.jiale@intel.com>",
        "Subject": "[dts][PATCH V3 08/10] tests/ice_iavf_fdir: update dts code for dpdk\n csum change",
        "Date": "Tue, 30 Aug 2022 10:47:38 +0800",
        "Message-Id": "<20220830024740.26250-8-weiyuanx.li@intel.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20220830024740.26250-1-weiyuanx.li@intel.com>",
        "References": "<20220830024740.26250-1-weiyuanx.li@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": "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---\nTested-by: Jiale Song < songx.jiale@intel.com>\n\nv2:\n-Enable promisc mode in testpmd\nv3:\n-Test plan csum add enable promisc mode\n\n tests/TestSuite_ice_iavf_fdir.py | 84 ++++++++++++++++++++++++++++++--\n 1 file changed, 81 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_ice_iavf_fdir.py b/tests/TestSuite_ice_iavf_fdir.py\nindex a4df6151..1cc71f67 100644\n--- a/tests/TestSuite_ice_iavf_fdir.py\n+++ b/tests/TestSuite_ice_iavf_fdir.py\n@@ -8401,6 +8401,14 @@ class TestICEIAVFFdir(TestCase):\n         self.dut_file_dir = \"/tmp/\"\n         self.q_num = TXQ_RXQ_NUMBER\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         Run before each test case.\n@@ -8422,6 +8430,42 @@ class TestICEIAVFFdir(TestCase):\n         self.sriov_vfs_pf0 = self.dut.ports_info[self.used_dut_port_0][\"vfs_port\"]\n         self.sriov_vfs_pf1 = self.dut.ports_info[self.used_dut_port_1][\"vfs_port\"]\n \n+        self.host_intf_0 = self.dut.ports_info[self.used_dut_port_0][\"intf\"]\n+        self.host_intf_1 = self.dut.ports_info[self.used_dut_port_0][\"intf\"]\n+\n+        if self.running_case in [\n+            \"test_pfcp_vlan_strip_off_sw_checksum\",\n+            \"test_pfcp_vlan_strip_on_hw_checksum\",\n+        ]:\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+            self.ip_link_set(\n+                host_intf=self.host_intf_1,\n+                cmd=\"vf\",\n+                port=0,\n+                types=\"trust\",\n+                value=\"on\",\n+            )\n+            self.ip_link_set(\n+                host_intf=self.host_intf_1,\n+                cmd=\"vf\",\n+                port=0,\n+                types=\"spoofchk\",\n+                value=\"off\",\n+            )\n+\n         self.dut.send_expect(\n             \"ip link set %s vf 0 mac 00:11:22:33:44:55\" % self.pf0_intf, \"#\"\n         )\n@@ -10760,6 +10804,7 @@ class TestICEIAVFFdir(TestCase):\n         self.dut.send_expect(\"csum set ip %s %d\" % (hw, port), \"testpmd>\")\n         self.dut.send_expect(\"csum set udp %s %d\" % (hw, port), \"testpmd>\")\n         self.dut.send_expect(\"port start all\", \"testpmd>\")\n+        self.dut.send_expect(\"set promisc 0 on\", \"testpmd>\")\n         self.dut.send_expect(\"start\", \"testpmd>\")\n \n     def get_chksum_values(self, packets_expected):\n@@ -10791,7 +10836,7 @@ class TestICEIAVFFdir(TestCase):\n         tx_interface = self.tester_iface0\n         rx_interface = self.tester_iface0\n \n-        sniff_src = \"00:11:22:33:44:55\"\n+        sniff_src = \"52:00:00:00:00:00\"\n         result = dict()\n         pkt = Packet()\n         chksum = self.get_chksum_values(packets_expected)\n@@ -10896,7 +10941,7 @@ class TestICEIAVFFdir(TestCase):\n             socket=self.ports_socket,\n         )\n         vlan = 51\n-        mac = \"00:11:22:33:44:55\"\n+        mac = \"00:11:22:33:44:56\"\n         sndIP = \"10.0.0.1\"\n         sndIPv6 = \"::1\"\n         pkts_sent = {\n@@ -11051,7 +11096,7 @@ class TestICEIAVFFdir(TestCase):\n             socket=self.ports_socket,\n         )\n         vlan = 51\n-        mac = \"00:11:22:33:44:55\"\n+        mac = \"00:11:22:33:44:56\"\n         sndIP = \"10.0.0.1\"\n         sndIPv6 = \"::1\"\n         pkts_sent = {\n@@ -11610,6 +11655,39 @@ class TestICEIAVFFdir(TestCase):\n         if getattr(self, \"session_third\", None):\n             self.dut.close_session(self.session_third)\n \n+        if self.running_case in [\n+            \"test_pfcp_vlan_strip_off_sw_checksum\",\n+            \"test_pfcp_vlan_strip_on_hw_checksum\",\n+        ]:\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+            self.ip_link_set(\n+                host_intf=self.host_intf_1,\n+                cmd=\"vf\",\n+                port=0,\n+                types=\"trust\",\n+                value=\"off\",\n+            )\n+            self.ip_link_set(\n+                host_intf=self.host_intf_1,\n+                cmd=\"vf\",\n+                port=0,\n+                types=\"spoofchk\",\n+                value=\"on\",\n+            )\n+\n     def tear_down_all(self):\n         self.dut.kill_all()\n         self.destroy_env()\n",
    "prefixes": [
        "V3",
        "08/10"
    ]
}