get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 120048,
    "url": "https://patches.dpdk.org/api/patches/120048/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20221122070927.7634-6-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": "<20221122070927.7634-6-weiyuanx.li@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20221122070927.7634-6-weiyuanx.li@intel.com",
    "date": "2022-11-22T07:09:25",
    "name": "[V4,6/8] tests/vlan_ethertype_config: modify script and test plan to support i40e fimware >= 8.4",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "2d9228344343180ac2c613bda5bd0c0dbab3c2ec",
    "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/20221122070927.7634-6-weiyuanx.li@intel.com/mbox/",
    "series": [
        {
            "id": 25851,
            "url": "https://patches.dpdk.org/api/series/25851/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=25851",
            "date": "2022-11-22T07:09:20",
            "name": "[V4,1/8] test_plans/dual_vlan: modify script and test plan to support i40e fimware >= 8.4",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/25851/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/120048/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/120048/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 51C56A057F;\n\tTue, 22 Nov 2022 08:09:49 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4E47342D43;\n\tTue, 22 Nov 2022 08:09:49 +0100 (CET)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id D78DE42D43\n for <dts@dpdk.org>; Tue, 22 Nov 2022 08:09:47 +0100 (CET)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Nov 2022 23:09:47 -0800",
            "from unknown (HELO localhost.localdomain) ([10.239.252.248])\n by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Nov 2022 23:09:45 -0800"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1669100988; x=1700636988;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=luz9pvHjtQ4jXcRvNw8BYCe/u96kg1ySFLVuQzQDU/Q=;\n b=ApM907kwDlTw+/Q0mC7RZl7p2aELLrhSVuVSpZfuBvRVC1GLzQNyiVb5\n hkEBreaTeR03/OJb/+aQBUppd7yi4WhM6Xyc4xrIHAvNiMnedYgbQCc6n\n LBwSF2CadyJHRehx0lMu2TkqPGA/TVxkjp+NAWl8rmR39/BikpKXa/m6l\n bJME+2UxE9kYr85+gKw5ImZMCwaDvbKbl71Rim3t4ioUU14dGb/3jB7gE\n v1aXqnqFYnuWxYG+TSd6sJdaBPF6+ro/LtEWg+phsgWszIx+4jUsRb+7k\n a7Xd5Z9SB9KYbQGEl4QM6lqJ3AZx7KpN6+gzRgdpmc2sUTDsP4Nx8gZVE w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10538\"; a=\"314899816\"",
            "E=Sophos;i=\"5.96,183,1665471600\"; d=\"scan'208\";a=\"314899816\"",
            "E=McAfee;i=\"6500,9779,10538\"; a=\"730296344\"",
            "E=Sophos;i=\"5.96,183,1665471600\"; d=\"scan'208\";a=\"730296344\""
        ],
        "From": "Weiyuan Li <weiyuanx.li@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Weiyuan Li <weiyuanx.li@intel.com>,\n\tSong Jiale <songx.jiale@intel.com>",
        "Subject": "[dts][PATCH V4 6/8] tests/vlan_ethertype_config: modify script and\n test plan to support i40e fimware >= 8.4",
        "Date": "Tue, 22 Nov 2022 15:09:25 +0800",
        "Message-Id": "<20221122070927.7634-6-weiyuanx.li@intel.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20221122070927.7634-1-weiyuanx.li@intel.com>",
        "References": "<20221122070927.7634-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": "Modify script and test plan to i40e support fimware >= 8.4.\nWhen the fimrware >= 8.4, if the filter is to take effect need to enable\nextend.\n\nSigned-off-by: Weiyuan Li <weiyuanx.li@intel.com>\n---\nTested-by: Song Jiale <songx.jiale@intel.com>\n\nv2:\n-use the firmware version to judge whether to add command `extend on`.\nv3:\n-modify description.\nv4:\n-modify comments.\n-dual_vlan test plan modify table and add header.\n\n tests/TestSuite_vlan_ethertype_config.py | 25 +++++++++++++++++++++++-\n 1 file changed, 24 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/tests/TestSuite_vlan_ethertype_config.py b/tests/TestSuite_vlan_ethertype_config.py\nindex b641d928..7147c490 100644\n--- a/tests/TestSuite_vlan_ethertype_config.py\n+++ b/tests/TestSuite_vlan_ethertype_config.py\n@@ -56,6 +56,17 @@ class TestVlanEthertypeConfig(TestCase):\n         \"\"\"\n         self.pmdout = PmdOutput(self.dut)\n         self.pmdout.start_testpmd(\"Default\", \"--portmask=%s\" % self.portmask)\n+        # Get the firmware version information\n+        try:\n+            self.fwversion, _, _ = self.pmdout.get_firmware_version(\n+                self.dut.get_ports()[0]\n+            ).split()\n+        except ValueError:\n+            # nic IXGBE, IGC\n+            self.fwversion = self.pmdout.get_firmware_version(\n+                self.dut.get_ports()[0]\n+            ).split()\n+\n         if self.kdriver == \"i40e\":\n             self.dut.send_expect(\"set promisc all off\", \"testpmd> \")\n \n@@ -194,6 +205,12 @@ class TestVlanEthertypeConfig(TestCase):\n                 self.dut.send_expect(\n                     \"vlan set filter on  %s\" % dutRxPortId, \"testpmd> \"\n                 )\n+                # Because the kernel forces enable Qinq and cannot be closed,\n+                # the dpdk can only add 'extend on' to make the VLAN filter work normally.\n+                if self.kdriver == \"i40e\" and self.fwversion >= \"8.40\":\n+                    self.dut.send_expect(\n+                        \"vlan set extend on %s\" % dutRxPortId, \"testpmd> \"\n+                    )\n                 self.dut.send_expect(\"start\", \"testpmd> \")\n                 self.check_vlan_packets(rx_vlan, tpid, self.rxItf, False)\n                 # test vlan filter off\n@@ -209,8 +226,12 @@ class TestVlanEthertypeConfig(TestCase):\n         random_vlan = random.randint(1, MAX_VLAN - 1)\n         rx_vlans = [1, random_vlan, MAX_VLAN]\n         self.dut.send_expect(\"set fwd mac\", \"testpmd> \")\n-        self.dut.send_expect(\"vlan set filter on  %s\" % dutRxPortId, \"testpmd> \")\n+        self.dut.send_expect(\"vlan set filter on %s\" % dutRxPortId, \"testpmd> \")\n         self.dut.send_expect(\"vlan set strip off %s\" % dutRxPortId, \"testpmd> \", 20)\n+        # Because the kernel forces enable Qinq and cannot be closed,\n+        # the dpdk can only add 'extend on' to make the VLAN filter work normally.\n+        if self.kdriver == \"i40e\" and self.fwversion >= \"8.40\":\n+            self.dut.send_expect(\"vlan set extend on %s\" % dutRxPortId, \"testpmd> \")\n         self.dut.send_expect(\"start\", \"testpmd> \")\n \n         # caium_a063 card support only default '0x8100' tpid in rx mode\n@@ -359,6 +380,8 @@ class TestVlanEthertypeConfig(TestCase):\n         \"\"\"\n         Run after each test case.\n         \"\"\"\n+        if self.kdriver == \"i40e\" and self.fwversion >= \"8.40\":\n+            self.dut.send_expect(\"vlan set extend off %s\" % dutRxPortId, \"testpmd> \")\n         self.dut.send_expect(\"stop\", \"testpmd> \", 30)\n         self.dut.send_expect(\"quit\", \"# \", 30)\n         pass\n",
    "prefixes": [
        "V4",
        "6/8"
    ]
}