get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 17064,
    "url": "https://patches.dpdk.org/api/patches/17064/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1479375779-46629-4-git-send-email-qiming.yang@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": "<1479375779-46629-4-git-send-email-qiming.yang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1479375779-46629-4-git-send-email-qiming.yang@intel.com",
    "date": "2016-11-17T09:42:54",
    "name": "[dpdk-dev] i40e: add firmware version get",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "67ee242ccf10957caed4f36a9f2c09903e0ff8f7",
    "submitter": {
        "id": 522,
        "url": "https://patches.dpdk.org/api/people/522/?format=api",
        "name": "Qiming Yang",
        "email": "qiming.yang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1479375779-46629-4-git-send-email-qiming.yang@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/17064/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/17064/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 3889358DB;\n\tThu, 17 Nov 2016 10:47:34 +0100 (CET)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 55C865694\n\tfor <dev@dpdk.org>; Thu, 17 Nov 2016 10:46:53 +0100 (CET)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga103.jf.intel.com with ESMTP; 17 Nov 2016 01:46:52 -0800",
            "from unknown (HELO dpdk7.bj.intel.com) ([172.16.182.76])\n\tby orsmga001.jf.intel.com with ESMTP; 17 Nov 2016 01:46:51 -0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.31,653,1473145200\"; d=\"scan'208\";\n\ta=\"1060591468\"",
        "From": "Qiming Yang <qiming.yang@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "remy.horton@intel.com, jingjing.wu@intel.com, jing.d.chen@intel.com,\n\tQiming Yang <qiming.yang@intel.com>",
        "Date": "Thu, 17 Nov 2016 17:42:54 +0800",
        "Message-Id": "<1479375779-46629-4-git-send-email-qiming.yang@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1479375779-46629-1-git-send-email-qiming.yang@intel.com>",
        "References": "<1479375779-46629-1-git-send-email-qiming.yang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH] i40e: add firmware version get",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Signed-off-by: Qiming Yang <qiming.yang@intel.com>\n---\n drivers/net/i40e/i40e_ethdev.c | 15 +++++++++++++++\n 1 file changed, 15 insertions(+)",
    "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 67778ba..f79bc5e 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -324,6 +324,8 @@ static int i40e_dev_queue_stats_mapping_set(struct rte_eth_dev *dev,\n \t\t\t\t\t    uint16_t queue_id,\n \t\t\t\t\t    uint8_t stat_idx,\n \t\t\t\t\t    uint8_t is_rx);\n+static void i40e_fw_version_get(struct rte_eth_dev *dev,\n+\t\t\t\tchar *fw_version, int fw_length);\n static void i40e_dev_info_get(struct rte_eth_dev *dev,\n \t\t\t      struct rte_eth_dev_info *dev_info);\n static int i40e_vlan_filter_set(struct rte_eth_dev *dev,\n@@ -503,6 +505,7 @@ static const struct eth_dev_ops i40e_eth_dev_ops = {\n \t.stats_reset                  = i40e_dev_stats_reset,\n \t.xstats_reset                 = i40e_dev_stats_reset,\n \t.queue_stats_mapping_set      = i40e_dev_queue_stats_mapping_set,\n+\t.fw_version_get               = i40e_fw_version_get,\n \t.dev_infos_get                = i40e_dev_info_get,\n \t.dev_supported_ptypes_get     = i40e_dev_supported_ptypes_get,\n \t.vlan_filter_set              = i40e_vlan_filter_set,\n@@ -2577,6 +2580,18 @@ i40e_dev_queue_stats_mapping_set(__rte_unused struct rte_eth_dev *dev,\n }\n \n static void\n+i40e_fw_version_get(struct rte_eth_dev *dev, char *fw_version, int fw_length)\n+{\n+\tstruct i40e_hw *hw = I40E_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n+\n+\tsnprintf(fw_version, fw_length,\n+\t\t \"%d.%d%d 0x%04x\",\n+\t\t ((hw->nvm.version >> 12) & 0xf),\n+\t\t ((hw->nvm.version >> 4) & 0xff),\n+\t\t (hw->nvm.version & 0xf), hw->nvm.eetrack);\n+}\n+\n+static void\n i40e_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n {\n \tstruct i40e_pf *pf = I40E_DEV_PRIVATE_TO_PF(dev->data->dev_private);\n",
    "prefixes": [
        "dpdk-dev"
    ]
}