get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 74524,
    "url": "https://patches.dpdk.org/api/patches/74524/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200721074000.30449-2-guinanx.sun@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": "<20200721074000.30449-2-guinanx.sun@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200721074000.30449-2-guinanx.sun@intel.com",
    "date": "2020-07-21T07:39:53",
    "name": "[1/8] net/i40e/base: enable FEC on/off flag setting for X722",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "16bb1bcd474cd9f50cade5be35899966f746aa84",
    "submitter": {
        "id": 1476,
        "url": "https://patches.dpdk.org/api/people/1476/?format=api",
        "name": "Guinan Sun",
        "email": "guinanx.sun@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/20200721074000.30449-2-guinanx.sun@intel.com/mbox/",
    "series": [
        {
            "id": 11193,
            "url": "https://patches.dpdk.org/api/series/11193/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11193",
            "date": "2020-07-21T07:39:52",
            "name": "update i40e base code",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/11193/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74524/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74524/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 41DDFA0526;\n\tTue, 21 Jul 2020 10:04:42 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 13FC41C012;\n\tTue, 21 Jul 2020 10:04:37 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by dpdk.org (Postfix) with ESMTP id C7E2E1BFE4\n for <dev@dpdk.org>; Tue, 21 Jul 2020 10:04:33 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Jul 2020 01:04:33 -0700",
            "from intel.sh.intel.com ([10.239.255.18])\n by orsmga002.jf.intel.com with ESMTP; 21 Jul 2020 01:04:31 -0700"
        ],
        "IronPort-SDR": [
            "\n I5+2erymXCLC/aCzA5oHZ3XH3iUXB8LxkN+/zKmFyeDMuZ1XzqNK10TLG7znXTiUDIWDElUoP0\n /taJ+ynHKTGg==",
            "\n Kx2eIdo5ZpbSy412/n1rm0DFESOALmMepJkWmSE81wUfo5Cg2Qlqjrjrgi6kCf1xCu0h7Kt8jL\n ja3LAwqw7J0g=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9688\"; a=\"147586136\"",
            "E=Sophos;i=\"5.75,378,1589266800\"; d=\"scan'208\";a=\"147586136\"",
            "E=Sophos;i=\"5.75,378,1589266800\"; d=\"scan'208\";a=\"301541627\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Guinan Sun <guinanx.sun@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Beilei Xing <beilei.xing@intel.com>, Jeff Guo <jia.guo@intel.com>,\n Guinan Sun <guinanx.sun@intel.com>,\n Dawid Lukwinski <dawid.lukwinski@intel.com>",
        "Date": "Tue, 21 Jul 2020 07:39:53 +0000",
        "Message-Id": "<20200721074000.30449-2-guinanx.sun@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200721074000.30449-1-guinanx.sun@intel.com>",
        "References": "<20200721074000.30449-1-guinanx.sun@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 1/8] net/i40e/base: enable FEC on/off flag\n\tsetting for X722",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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": "Starting with API version 1.10 firmware for X722 devices has ability\nto change FEC settings in PHY. Code added in this patch\nchecks API version and sets appropriate capability flag.\n\nSigned-off-by: Dawid Lukwinski <dawid.lukwinski@intel.com>\nSigned-off-by: Guinan Sun <guinanx.sun@intel.com>\n---\n drivers/net/i40e/base/i40e_adminq.c     | 6 ++++++\n drivers/net/i40e/base/i40e_adminq_cmd.h | 2 ++\n drivers/net/i40e/base/i40e_type.h       | 1 +\n 3 files changed, 9 insertions(+)",
    "diff": "diff --git a/drivers/net/i40e/base/i40e_adminq.c b/drivers/net/i40e/base/i40e_adminq.c\nindex c89e1fb3f..0da45f03e 100644\n--- a/drivers/net/i40e/base/i40e_adminq.c\n+++ b/drivers/net/i40e/base/i40e_adminq.c\n@@ -603,6 +603,12 @@ STATIC void i40e_set_hw_flags(struct i40e_hw *hw)\n \t\t    (aq->api_maj_ver == 1 &&\n \t\t     aq->api_min_ver >= I40E_MINOR_VER_GET_LINK_INFO_X722))\n \t\t\thw->flags |= I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE;\n+\n+\t\tif (aq->api_maj_ver > 1 ||\n+\t\t    (aq->api_maj_ver == 1 &&\n+\t\t     aq->api_min_ver >= I40E_MINOR_VER_FW_REQUEST_FEC_X722))\n+\t\t\thw->flags |= I40E_HW_FLAG_X722_FEC_REQUEST_CAPABLE;\n+\n \t\t/* fall through */\n \tdefault:\n \t\tbreak;\ndiff --git a/drivers/net/i40e/base/i40e_adminq_cmd.h b/drivers/net/i40e/base/i40e_adminq_cmd.h\nindex 1905167f5..f790183be 100644\n--- a/drivers/net/i40e/base/i40e_adminq_cmd.h\n+++ b/drivers/net/i40e/base/i40e_adminq_cmd.h\n@@ -25,6 +25,8 @@\n #define I40E_MINOR_VER_GET_LINK_INFO_X722 0x0009\n /* API version 1.6 for X722 devices adds ability to stop FW LLDP agent */\n #define I40E_MINOR_VER_FW_LLDP_STOPPABLE_X722 0x0006\n+/* API version 1.10 for X722 devices adds ability to request FEC encoding */\n+#define I40E_MINOR_VER_FW_REQUEST_FEC_X722 0x000A\n \n struct i40e_aq_desc {\n \t__le16 flags;\ndiff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h\nindex 014a4c132..b5b5b928d 100644\n--- a/drivers/net/i40e/base/i40e_type.h\n+++ b/drivers/net/i40e/base/i40e_type.h\n@@ -745,6 +745,7 @@ struct i40e_hw {\n #define I40E_HW_FLAG_FW_LLDP_PERSISTENT     BIT_ULL(5)\n #define I40E_HW_FLAG_AQ_PHY_ACCESS_EXTENDED BIT_ULL(6)\n #define I40E_HW_FLAG_DROP_MODE\t\t    BIT_ULL(7)\n+#define I40E_HW_FLAG_X722_FEC_REQUEST_CAPABLE BIT_ULL(8)\n \tu64 flags;\n \n \t/* Used in set switch config AQ command */\n",
    "prefixes": [
        "1/8"
    ]
}