get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 113709,
    "url": "https://patches.dpdk.org/api/patches/113709/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20220706023806.27825-2-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": "<20220706023806.27825-2-weiyuanx.li@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220706023806.27825-2-weiyuanx.li@intel.com",
    "date": "2022-07-06T02:38:04",
    "name": "[V2,2/4] tests/vf_vlan: update dts code for driver change",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "57f1b95561e823e3ce5f5ca8d25caf4c38ddf0a9",
    "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/20220706023806.27825-2-weiyuanx.li@intel.com/mbox/",
    "series": [
        {
            "id": 23895,
            "url": "https://patches.dpdk.org/api/series/23895/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=23895",
            "date": "2022-07-06T02:38:04",
            "name": "[V2,1/4] tests/kernelpf_iavf: update dts code for driver change",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/23895/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/113709/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/113709/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 15B8CA0543;\n\tWed,  6 Jul 2022 04:38:17 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A0C55410D3;\n\tWed,  6 Jul 2022 04:38:16 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id B357940395\n for <dts@dpdk.org>; Wed,  6 Jul 2022 04:38:15 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 05 Jul 2022 19:38:15 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.248])\n by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 05 Jul 2022 19:38:13 -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=1657075095; x=1688611095;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=ou2tuAQntfWZ91vyabKzPPryByNmWRxNAzYv7dwEWao=;\n b=KYzswA26KNVMTrj1j6QGFGTCYMEUwCXLKLyOFoAIGQFjauDSrLCpvyUN\n Jmw2SGPlCzv8+wxwOEzQPc+RVQX+LiDSRvK3SAxfNkXV5I7nM8bAxv7S6\n b9o4xKFwZhJOALs3pHmnMayyunSs27uEOGJ7wp0qcVdYfL8bQkAJO5Eon\n yg466ZvVTc2Rx2TL0K7Qi4ngSyRWdZXk5PlD9mZSc6j50H/TIGmBA9vxY\n QcktnIImiNJVHZXS/aWU+tMdlDSvnnFfqfVrumbDx9JYygQOgVnlduX3x\n Q4kTWBLX1l5cAhQ1lQD4IWqU+6oLz1ZfxjAiYEv5RkF31BcJegmdlphHy Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10399\"; a=\"369941346\"",
            "E=Sophos;i=\"5.92,248,1650956400\"; d=\"scan'208\";a=\"369941346\"",
            "E=Sophos;i=\"5.92,248,1650956400\"; d=\"scan'208\";a=\"625684834\""
        ],
        "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 V2 2/4] tests/vf_vlan: update dts code for driver change",
        "Date": "Wed,  6 Jul 2022 10:38:04 +0800",
        "Message-Id": "<20220706023806.27825-2-weiyuanx.li@intel.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20220706023806.27825-1-weiyuanx.li@intel.com>",
        "References": "<20220706023806.27825-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": "The out-tree driver has vf-vlan-pruning option,but in-tree driver has\nnot. So we need different action to enable vlan filter when we validate\nthe vlan filter function with in-tree and out-tree kernel drvier.\n\nSigned-off-by: Weiyuan Li <weiyuanx.li@intel.com>\n---\n\nv2:\n-fix format issue\n\n tests/TestSuite_vf_vlan.py | 32 +++++++++++++++++++++++++++++---\n 1 file changed, 29 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py\nindex e73ad479..2ae4b3dc 100644\n--- a/tests/TestSuite_vf_vlan.py\n+++ b/tests/TestSuite_vf_vlan.py\n@@ -62,7 +62,25 @@ 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-        if self.is_eth_series_nic(800) and self.default_stats:\n+        # check out tree driver whether there is flag vf-vlan-pruning.\n+        # out tree path: /lib/modules/4.18.0-305.19.1.el8_4.x86_64/updates/drivers/net/ethernet/intel/i40e/i40e.ko\n+        # in tree path:/lib/modules/5.15.0-27-generic/kernel/drivers/net/ethernet/intel/ice/ice.ko\n+        out = self.dut.send_expect(f\"modinfo {self.kdriver}\", \"# \")\n+        pattern = \"/lib/modules/(.*?)/updates/drivers\"\n+        regex = re.compile(pattern)\n+        mo = regex.search(out)\n+        if mo:\n+            search_results = mo.group(0)\n+        else:\n+            search_results = \"\"\n+        if \"updates\" in search_results and not self.default_stats:\n+            self.logger.warning(\n+                f\"{self.kdriver} driver out tree does not have vf-vlan-pruning flag. Please confirm whether the driver is correct.\"\n+            )\n+        if (\n+            any([self.is_eth_series_nic(800), self.kdriver == \"i40e\"])\n+            and self.default_stats\n+        ):\n             self.dut.send_expect(\n                 \"ethtool --set-priv-flags %s %s on\" % (self.host_intf0, self.flag), \"# \"\n             )\n@@ -233,7 +251,11 @@ 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.kdriver == \"i40e\" and self.driver_version < \"2.13.10\":\n+        if (\n+            (self.kdriver == \"i40e\" and self.driver_version < \"2.13.10\")\n+            or (self.kdriver == \"i40e\" and not self.default_stats)\n+            or (self.kdriver == \"ice\" and not self.default_stats)\n+        ):\n             self.verify(\"received\" in out, \"Failed to received vlan packet!!!\")\n         else:\n             self.verify(\"received\" not in out, \"Received vlan packet without pvid!!!\")\n@@ -354,7 +376,11 @@ 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.kdriver == \"i40e\" and self.driver_version < \"2.13.10\":\n+        if (\n+            (self.kdriver == \"i40e\" and self.driver_version < \"2.13.10\")\n+            or (self.kdriver == \"i40e\" and not self.default_stats)\n+            or (self.kdriver == \"ice\" and not self.default_stats)\n+        ):\n             self.verify(\n                 \"received 1 packets\" in out,\n                 \"Received mismatched vlan packet while vlan filter on\",\n",
    "prefixes": [
        "V2",
        "2/4"
    ]
}