get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 97996,
    "url": "http://patches.dpdk.org/api/patches/97996/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20210906094040.6867-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": "<20210906094040.6867-2-zhiminx.huang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210906094040.6867-2-zhiminx.huang@intel.com",
    "date": "2021-09-06T09:40:39",
    "name": "[V2,1/2] tests/kernelpf_iavf:fix vlan issue",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "5a4cd2dcbf5486c2ee2a3fccf0d469d583e5fc8c",
    "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/20210906094040.6867-2-zhiminx.huang@intel.com/mbox/",
    "series": [
        {
            "id": 18684,
            "url": "http://patches.dpdk.org/api/series/18684/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=18684",
            "date": "2021-09-06T09:40:40",
            "name": "[V2,1/2] tests/kernelpf_iavf:fix vlan issue",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/18684/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/97996/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/97996/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 ADA7EA0C54;\n\tMon,  6 Sep 2021 03:09:11 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A8452410E9;\n\tMon,  6 Sep 2021 03:09:11 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id 674D040C35\n for <dts@dpdk.org>; Mon,  6 Sep 2021 03:09:08 +0200 (CEST)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 05 Sep 2021 18:09:02 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.103])\n by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 05 Sep 2021 18:09:01 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10098\"; a=\"217987731\"",
            "E=Sophos;i=\"5.85,271,1624345200\"; d=\"scan'208\";a=\"217987731\"",
            "E=Sophos;i=\"5.85,271,1624345200\"; d=\"scan'208\";a=\"468674245\""
        ],
        "From": "Zhimin Huang <zhiminx.huang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Zhimin Huang <zhiminx.huang@intel.com>",
        "Date": "Mon,  6 Sep 2021 17:40:39 +0800",
        "Message-Id": "<20210906094040.6867-2-zhiminx.huang@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210906094040.6867-1-zhiminx.huang@intel.com>",
        "References": "<20210906094040.6867-1-zhiminx.huang@intel.com>",
        "Subject": "[dts] [PATCH V2 1/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.\n 2.according to dpdk code and kernel change about vlan for cvl,fix dts code\n   to adapt test point.\n\nSigned-off-by: Zhimin Huang <zhiminx.huang@intel.com>\n---\n tests/TestSuite_kernelpf_iavf.py | 16 +++++++---------\n 1 file changed, 7 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py\nindex 5db1ec0..9b340a9 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@@ -420,7 +418,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@@ -489,7 +487,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@@ -537,7 +535,7 @@ class TestKernelpfIavf(TestCase):\n         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, 'Failed to not received vlan packet!!!')\n         else:\n             self.verify(len(receive_pkt) == 1, 'Failed to not received vlan packet!!!')\n@@ -574,7 +572,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@@ -917,7 +915,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": [
        "V2",
        "1/2"
    ]
}