get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 100914,
    "url": "http://patches.dpdk.org/api/patches/100914/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20211009175019.30234-2-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": "<20211009175019.30234-2-zhiminx.huang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20211009175019.30234-2-zhiminx.huang@intel.com",
    "date": "2021-10-09T17:50:19",
    "name": "[V3,2/2] tests/kernelpf_iavf:fix vlan issue",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "b1758a078810aab2f048980840bf584b45a2c4ed",
    "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/20211009175019.30234-2-zhiminx.huang@intel.com/mbox/",
    "series": [
        {
            "id": 19485,
            "url": "http://patches.dpdk.org/api/series/19485/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=19485",
            "date": "2021-10-09T17:50:18",
            "name": "[V3,1/2] tests/vf_vlan:fix vlan issue",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/19485/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/100914/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/100914/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 07B6EA0C45;\n\tSat,  9 Oct 2021 11:23:12 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id F0A154067A;\n\tSat,  9 Oct 2021 11:23:11 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 462B44003C\n for <dts@dpdk.org>; Sat,  9 Oct 2021 11:23:10 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Oct 2021 02:23:09 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.103])\n by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Oct 2021 02:23:08 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10131\"; a=\"226603056\"",
            "E=Sophos;i=\"5.85,360,1624345200\"; d=\"scan'208\";a=\"226603056\"",
            "E=Sophos;i=\"5.85,360,1624345200\"; d=\"scan'208\";a=\"624992652\""
        ],
        "From": "Zhimin Huang <zhiminx.huang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Zhimin Huang <zhiminx.huang@intel.com>",
        "Date": "Sun, 10 Oct 2021 01:50:19 +0800",
        "Message-Id": "<20211009175019.30234-2-zhiminx.huang@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20211009175019.30234-1-zhiminx.huang@intel.com>",
        "References": "<20211009175019.30234-1-zhiminx.huang@intel.com>",
        "Subject": "[dts] [PATCH V3 2/2] tests/kernelpf_iavf:fix vlan issue",
        "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": "1.use dts framework interface to get kernel driver version.\n2.according to 1c301e8c3cff02501b5bd35feae30193fd3e65e1,\n  fix dts code to adapt test point.\n\nv3:\n- add dpdk commit id in comment\n\nSigned-off-by: Zhimin Huang <zhiminx.huang@intel.com>\n---\n tests/TestSuite_kernelpf_iavf.py | 14 ++++++--------\n 1 file changed, 6 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py\nindex 6a858fc5..d5427b54 100644\n--- a/tests/TestSuite_kernelpf_iavf.py\n+++ b/tests/TestSuite_kernelpf_iavf.py\n@@ -67,6 +67,8 @@ class TestKernelpfIavf(TestCase):\n         self.vf_mac = '00:01:23:45:67:89'\n         self.add_addr = '00:11:22:33:44:55'\n         self.wrong_mac = '00:11:22:33:44:99'\n+        # get driver version\n+        self.driver_version = self.nic_obj.driver_version\n \n         self.port = self.dut_ports[0]\n         self.vm_port = 0\n@@ -155,10 +157,6 @@ class TestKernelpfIavf(TestCase):\n             self.dut.send_expect(\"ip link set %s vf 0 mac %s\" %\n                                  (self.host_intf, self.vf_mac), \"# \")\n \n-        # get driver version\n-        out = self.dut.send_expect(\"ethtool -i %s | awk -F':' 'NR==2{print $2}'\" % self.host_intf, \"# \")\n-        self.driver_version = out.replace(\" \", \"\")\n-\n         try:\n \n             for port in self.sriov_vfs_port:\n@@ -431,7 +429,7 @@ class TestKernelpfIavf(TestCase):\n         out = self.send_and_getout(vlan=random_vlan, pkt_type=\"VLAN_UDP\")\n         tcpdump_out = self.get_tcpdump_package()\n         receive_pkt = re.findall('vlan %s' % random_vlan, tcpdump_out)\n-        if self.driver_version < \"2.13.10\" or self.kdriver == 'ice':\n+        if self.kdriver == 'i40e' and self.driver_version < \"2.13.10\":\n             self.verify(len(receive_pkt) == 2, \"fail to tester received vlan packet!!!\")\n             self.verify(self.vf_mac in out, \"Failed to received vlan packet!!!\")\n         else:\n@@ -500,7 +498,7 @@ class TestKernelpfIavf(TestCase):\n \n         # send vlan 1 packet, vf can receive packet\n         out = self.send_and_getout(vlan=1, pkt_type=\"VLAN_UDP\")\n-        if self.driver_version < \"2.13.10\" or self.kdriver == 'ice':\n+        if self.kdriver == 'i40e' and self.driver_version < \"2.13.10\":\n             self.verify(self.vf_mac in out, \"received vlan 1 packet!!!\")\n         else:\n             self.verify(self.vf_mac not in out, \"Received vlan 1 packet!!!\")\n@@ -585,7 +583,7 @@ class TestKernelpfIavf(TestCase):\n         time.sleep(1)\n         tcpdump_out = self.get_tcpdump_package()\n         receive_pkt = re.findall('vlan %s' % random_vlan, tcpdump_out)\n-        if self.driver_version < \"2.13.10\" or self.kdriver == 'ice':\n+        if self.kdriver == 'i40e' and self.driver_version < \"2.13.10\":\n             self.verify(len(receive_pkt) == 2, 'Failed to received vlan packet!!!')\n         else:\n             self.verify(len(receive_pkt) == 1, 'Failed to received vlan packet!!!')\n@@ -957,7 +955,7 @@ class TestKernelpfIavf(TestCase):\n         self.scapy_send_packet(self.vf_mac, self.tester_intf, vlan_flags=True, count=10)\n         out = self.vm_dut.get_session_output()\n         packets = len(re.findall('received 1 packets', out))\n-        if self.driver_version < \"2.13.10\" or self.kdriver == 'ice':\n+        if self.kdriver == 'i40e' and self.driver_version < \"2.13.10\":\n             self.verify(packets == 10, \"Not receive expected packet\")\n         else:\n             self.verify(packets == 0, \"Receive expected packet\")\n",
    "prefixes": [
        "V3",
        "2/2"
    ]
}