get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 100913,
    "url": "http://patches.dpdk.org/api/patches/100913/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20211009175019.30234-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": "<20211009175019.30234-1-zhiminx.huang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20211009175019.30234-1-zhiminx.huang@intel.com",
    "date": "2021-10-09T17:50:18",
    "name": "[V3,1/2] tests/vf_vlan:fix vlan issue",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "cebdb94ceee23d9d9217536d0a7e5481d6e7a541",
    "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-1-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/100913/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/100913/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 DCCDBA0C41;\n\tSat,  9 Oct 2021 11:23:10 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CFAF340142;\n\tSat,  9 Oct 2021 11:23:10 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id A175B4003C\n for <dts@dpdk.org>; Sat,  9 Oct 2021 11:23:09 +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:08 -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:07 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10131\"; a=\"226603055\"",
            "E=Sophos;i=\"5.85,360,1624345200\"; d=\"scan'208\";a=\"226603055\"",
            "E=Sophos;i=\"5.85,360,1624345200\"; d=\"scan'208\";a=\"624992644\""
        ],
        "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:18 +0800",
        "Message-Id": "<20211009175019.30234-1-zhiminx.huang@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dts] [PATCH V3 1/2] tests/vf_vlan: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_vf_vlan.py | 10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py\nindex 28650143..34ba75e7 100644\n--- a/tests/TestSuite_vf_vlan.py\n+++ b/tests/TestSuite_vf_vlan.py\n@@ -65,6 +65,9 @@ class TestVfVlan(TestCase):\n             self.vf_assign_method = 'vfio-pci'\n             self.dut.send_expect('modprobe vfio-pci', '#')\n \n+        # get driver version\n+        self.driver_version = self.nic_obj.driver_version\n+\n     def set_up(self):\n         self.setup_vm_env()\n \n@@ -107,9 +110,6 @@ class TestVfVlan(TestCase):\n         self.host_intf0 = self.dut.ports_info[self.used_dut_port_0]['intf']\n         tester_port = self.tester.get_local_port(self.used_dut_port_0)\n         self.tester_intf0 = self.tester.get_interface(tester_port)\n-        # get driver version\n-        out = self.dut.send_expect(\"ethtool -i %s | awk -F':' 'NR==2{print $2}'\" % self.host_intf0, \"# \")\n-        self.driver_version = out.replace(\" \", \"\")\n \n         self.dut.generate_sriov_vfs_by_port(\n             self.used_dut_port_0, 1, driver=driver)\n@@ -276,7 +276,7 @@ class TestVfVlan(TestCase):\n         self.vm0_testpmd.execute_cmd(\"start\")\n \n         out = self.send_and_getout(vlan=random_vlan, 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(\"received\" in out, \"Failed to received vlan packet!!!\")\n         else:\n             self.verify(\n@@ -398,7 +398,7 @@ class TestVfVlan(TestCase):\n \n         # send packet with vlan\n         out = self.send_and_getout(vlan=random_vlan, 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(\n                 \"received 1 packets\" in out, \"Received mismatched vlan packet while vlan filter on\")\n         else:\n",
    "prefixes": [
        "V3",
        "1/2"
    ]
}