get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 86947,
    "url": "https://patches.dpdk.org/api/patches/86947/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210120041750.408535-3-haiyue.wang@intel.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20210120041750.408535-3-haiyue.wang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210120041750.408535-3-haiyue.wang@intel.com",
    "date": "2021-01-20T04:17:49",
    "name": "[v3,2/2] net/iavf: align to the new VLAN offload name",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "7866694ef6e0e1323c90255b4762aa572974a8c7",
    "submitter": {
        "id": 1044,
        "url": "https://patches.dpdk.org/api/people/1044/?format=api",
        "name": "Wang, Haiyue",
        "email": "haiyue.wang@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210120041750.408535-3-haiyue.wang@intel.com/mbox/",
    "series": [
        {
            "id": 14857,
            "url": "https://patches.dpdk.org/api/series/14857/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14857",
            "date": "2021-01-20T04:17:47",
            "name": "iavf: update the VLAN offload message",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/14857/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/86947/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/86947/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-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 57E04A0A05;\n\tWed, 20 Jan 2021 05:34:00 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7A89D140DCB;\n\tWed, 20 Jan 2021 05:33:48 +0100 (CET)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 4972F140DA7\n for <dev@dpdk.org>; Wed, 20 Jan 2021 05:33:47 +0100 (CET)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Jan 2021 20:33:46 -0800",
            "from npg-dpdk-haiyue-3.sh.intel.com ([10.67.118.189])\n by orsmga001.jf.intel.com with ESMTP; 19 Jan 2021 20:33:44 -0800"
        ],
        "IronPort-SDR": [
            "\n zQEfGhAzNtIWqNx5atgC5d1otcdaTNVWQ353WihRKmfL5Zf6u9Eg096Gj0Vu/0mlalDjwqMmFr\n wnfh6/HehiiQ==",
            "\n X51PJWRpVMXWW61V5td7B3SBEzqIkYbF3EPyudiPYcGZe1+sW9MkGoSU1AftqMA5sdks3oHovW\n oTg3+AYiWH6w=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9869\"; a=\"158223391\"",
            "E=Sophos;i=\"5.79,360,1602572400\"; d=\"scan'208\";a=\"158223391\"",
            "E=Sophos;i=\"5.79,360,1602572400\"; d=\"scan'208\";a=\"426767160\""
        ],
        "X-ExtLoop1": "1",
        "From": "Haiyue Wang <haiyue.wang@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "qiming.yang@intel.com, qi.z.zhang@intel.com, qi.fu@intel.com,\n Haiyue Wang <haiyue.wang@intel.com>, Jingjing Wu <jingjing.wu@intel.com>,\n Beilei Xing <beilei.xing@intel.com>",
        "Date": "Wed, 20 Jan 2021 12:17:49 +0800",
        "Message-Id": "<20210120041750.408535-3-haiyue.wang@intel.com>",
        "X-Mailer": "git-send-email 2.30.0",
        "In-Reply-To": "<20210120041750.408535-1-haiyue.wang@intel.com>",
        "References": "<20210120011039.164462-1-haiyue.wang@intel.com>\n <20210120041750.408535-1-haiyue.wang@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v3 2/2] net/iavf: align to the new VLAN offload\n name",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Since the VLAN offload virtchnl message name has been renamed to setting\nstyle, the internal Ethernet type setting name needs be changed to avoid\nconfusing.\n\nSigned-off-by: Haiyue Wang <haiyue.wang@intel.com>\n---\n drivers/net/iavf/iavf_vchnl.c | 16 ++++++++--------\n 1 file changed, 8 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c\nindex 426ddb6c7e..c82925eceb 100644\n--- a/drivers/net/iavf/iavf_vchnl.c\n+++ b/drivers/net/iavf/iavf_vchnl.c\n@@ -532,16 +532,16 @@ iavf_config_vlan_strip_v2(struct iavf_adapter *adapter, bool enable)\n \tstruct virtchnl_vlan_setting vlan_strip;\n \tstruct iavf_cmd_info args;\n \tuint32_t stripping_caps;\n-\tuint32_t *vlan_setting;\n+\tuint32_t *ethertype;\n \tint ret;\n \n \tsupported_caps = &vf->vlan_v2_caps.offloads.stripping_support;\n \tif (supported_caps->outer) {\n \t\tstripping_caps = supported_caps->outer;\n-\t\tvlan_setting = &vlan_strip.outer_ethertype_setting;\n+\t\tethertype = &vlan_strip.outer_ethertype_setting;\n \t} else {\n \t\tstripping_caps = supported_caps->inner;\n-\t\tvlan_setting = &vlan_strip.inner_ethertype_setting;\n+\t\tethertype = &vlan_strip.inner_ethertype_setting;\n \t}\n \n \tif (!(stripping_caps & VIRTCHNL_VLAN_ETHERTYPE_8100))\n@@ -549,7 +549,7 @@ iavf_config_vlan_strip_v2(struct iavf_adapter *adapter, bool enable)\n \n \tmemset(&vlan_strip, 0, sizeof(vlan_strip));\n \tvlan_strip.vport_id = vf->vsi_res->vsi_id;\n-\t*vlan_setting = VIRTCHNL_VLAN_ETHERTYPE_8100;\n+\t*ethertype = VIRTCHNL_VLAN_ETHERTYPE_8100;\n \n \targs.ops = enable ? VIRTCHNL_OP_ENABLE_VLAN_STRIPPING_V2 :\n \t\t\t    VIRTCHNL_OP_DISABLE_VLAN_STRIPPING_V2;\n@@ -574,16 +574,16 @@ iavf_config_vlan_insert_v2(struct iavf_adapter *adapter, bool enable)\n \tstruct virtchnl_vlan_setting vlan_insert;\n \tstruct iavf_cmd_info args;\n \tuint32_t insertion_caps;\n-\tuint32_t *vlan_setting;\n+\tuint32_t *ethertype;\n \tint ret;\n \n \tsupported_caps = &vf->vlan_v2_caps.offloads.insertion_support;\n \tif (supported_caps->outer) {\n \t\tinsertion_caps = supported_caps->outer;\n-\t\tvlan_setting = &vlan_insert.outer_ethertype_setting;\n+\t\tethertype = &vlan_insert.outer_ethertype_setting;\n \t} else {\n \t\tinsertion_caps = supported_caps->inner;\n-\t\tvlan_setting = &vlan_insert.inner_ethertype_setting;\n+\t\tethertype = &vlan_insert.inner_ethertype_setting;\n \t}\n \n \tif (!(insertion_caps & VIRTCHNL_VLAN_ETHERTYPE_8100))\n@@ -591,7 +591,7 @@ iavf_config_vlan_insert_v2(struct iavf_adapter *adapter, bool enable)\n \n \tmemset(&vlan_insert, 0, sizeof(vlan_insert));\n \tvlan_insert.vport_id = vf->vsi_res->vsi_id;\n-\t*vlan_setting = VIRTCHNL_VLAN_ETHERTYPE_8100;\n+\t*ethertype = VIRTCHNL_VLAN_ETHERTYPE_8100;\n \n \targs.ops = enable ? VIRTCHNL_OP_ENABLE_VLAN_INSERTION_V2 :\n \t\t\t    VIRTCHNL_OP_DISABLE_VLAN_INSERTION_V2;\n",
    "prefixes": [
        "v3",
        "2/2"
    ]
}