get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 4371,
    "url": "https://patches.dpdk.org/api/patches/4371/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1429518150-28098-7-git-send-email-helin.zhang@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": "<1429518150-28098-7-git-send-email-helin.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1429518150-28098-7-git-send-email-helin.zhang@intel.com",
    "date": "2015-04-20T08:22:18",
    "name": "[dpdk-dev,06/18] i40e: support of Fortpark device IDs and mac types",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f6840036b560bd2d578c785ef13ac3d7eee4ef35",
    "submitter": {
        "id": 14,
        "url": "https://patches.dpdk.org/api/people/14/?format=api",
        "name": "Zhang, Helin",
        "email": "helin.zhang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1429518150-28098-7-git-send-email-helin.zhang@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/4371/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/4371/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 105C9C414;\n\tMon, 20 Apr 2015 10:23:12 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id A9FC6C3FE\n\tfor <dev@dpdk.org>; Mon, 20 Apr 2015 10:23:07 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga102.jf.intel.com with ESMTP; 20 Apr 2015 01:22:52 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby fmsmga002.fm.intel.com with ESMTP; 20 Apr 2015 01:22:50 -0700",
            "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id t3K8MlFl013114;\n\tMon, 20 Apr 2015 16:22:47 +0800",
            "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid t3K8MiPQ028175; Mon, 20 Apr 2015 16:22:46 +0800",
            "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t3K8Mi4I028171; \n\tMon, 20 Apr 2015 16:22:44 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.11,608,1422950400\"; d=\"scan'208\";a=\"712055228\"",
        "From": "Helin Zhang <helin.zhang@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 20 Apr 2015 16:22:18 +0800",
        "Message-Id": "<1429518150-28098-7-git-send-email-helin.zhang@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1429518150-28098-1-git-send-email-helin.zhang@intel.com>",
        "References": "<1429518150-28098-1-git-send-email-helin.zhang@intel.com>",
        "Cc": "monica.kenguva@intel.com, steven.j.murray@intel.com,\n\tchiu-pi.shih@intel.com",
        "Subject": "[dpdk-dev] [PATCH 06/18] i40e: support of Fortpark device IDs and\n\tmac types",
        "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": "Support of Fortpark device IDs and mac types which includes FPGA\nwere added.\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\n---\n lib/librte_pmd_i40e/i40e/i40e_common.c | 17 +++++++++++++++++\n lib/librte_pmd_i40e/i40e/i40e_type.h   | 16 ++++++++++++++++\n 2 files changed, 33 insertions(+)",
    "diff": "diff --git a/lib/librte_pmd_i40e/i40e/i40e_common.c b/lib/librte_pmd_i40e/i40e/i40e_common.c\nindex e7b70c9..2256de9 100644\n--- a/lib/librte_pmd_i40e/i40e/i40e_common.c\n+++ b/lib/librte_pmd_i40e/i40e/i40e_common.c\n@@ -36,6 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.\n #include \"i40e_prototype.h\"\n #include \"i40e_virtchnl.h\"\n \n+\n /**\n  * i40e_set_mac_type - Sets MAC type\n  * @hw: pointer to the HW structure\n@@ -55,6 +56,8 @@ STATIC enum i40e_status_code i40e_set_mac_type(struct i40e_hw *hw)\n \n \tif (hw->vendor_id == I40E_INTEL_VENDOR_ID) {\n \t\tswitch (hw->device_id) {\n+\t\tcase I40E_DEV_ID_BVL_I40Q:\n+\t\tcase I40E_DEV_ID_FPGA_A:\n \t\tcase I40E_DEV_ID_SFP_XL710:\n \t\tcase I40E_DEV_ID_QEMU:\n \t\tcase I40E_DEV_ID_KX_A:\n@@ -66,6 +69,20 @@ STATIC enum i40e_status_code i40e_set_mac_type(struct i40e_hw *hw)\n \t\tcase I40E_DEV_ID_10G_BASE_T:\n \t\t\thw->mac.type = I40E_MAC_XL710;\n \t\t\tbreak;\n+\t\tcase I40E_DEV_ID_FPK_LBG_NS:\n+\t\tcase I40E_DEV_ID_FPK_LBG_SD:\n+\t\tcase I40E_DEV_ID_FPK_FPGA:\n+\t\t\thw->mac.type = I40E_MAC_FPK;\n+\t\t\tbreak;\n+\t\tcase I40E_DEV_ID_FPK_VF_LBG_NS:\n+\t\tcase I40E_DEV_ID_FPK_VF_LBG_SD:\n+\t\tcase I40E_DEV_ID_FPK_VF_HV_LBG_NS:\n+\t\tcase I40E_DEV_ID_FPK_VF_HV_LBG_SD:\n+\t\tcase I40E_DEV_ID_FPK_FPGA_VF:\n+\t\tcase I40E_DEV_ID_FPK_FPGA_VF_HV:\n+\t\t\thw->mac.type = I40E_MAC_FPK_VF;\n+\t\t\tbreak;\n+\t\tcase I40E_DEV_ID_BVL_I40Q_VF:\n \t\tcase I40E_DEV_ID_VF:\n \t\tcase I40E_DEV_ID_VF_HV:\n \t\t\thw->mac.type = I40E_MAC_VF;\ndiff --git a/lib/librte_pmd_i40e/i40e/i40e_type.h b/lib/librte_pmd_i40e/i40e/i40e_type.h\nindex 78b6a85..1565095 100644\n--- a/lib/librte_pmd_i40e/i40e/i40e_type.h\n+++ b/lib/librte_pmd_i40e/i40e/i40e_type.h\n@@ -63,6 +63,20 @@ POSSIBILITY OF SUCH DAMAGE.\n #define I40E_DEV_ID_10G_BASE_T\t\t0x1586\n #define I40E_DEV_ID_VF\t\t\t0x154C\n #define I40E_DEV_ID_VF_HV\t\t0x1571\n+#define I40E_DEV_ID_FPK_LBG_NS\t\t0x374C\n+#define I40E_DEV_ID_FPK_LBG_SD\t\t0x37CC\n+#define I40E_DEV_ID_FPK_VF_LBG_NS\t0x374D\n+#define I40E_DEV_ID_FPK_VF_LBG_SD\t0x37CD\n+#define I40E_DEV_ID_FPK_VF_HV_LBG_NS\t0x3759\n+#define I40E_DEV_ID_FPK_VF_HV_LBG_SD\t0x37D9\n+#define I40E_DEV_ID_FPK_FPGA\t\t0xF0A2\n+#define I40E_DEV_ID_FPK_FPGA_VF\t\t0xF0A3\n+#define I40E_DEV_ID_FPK_FPGA_VF_HV\t0xF0A4\n+#define I40E_DEV_ID_BVL_I40Q\t\t0xFAFA\n+#define I40E_DEV_ID_BVL_I40Q_VF\t\t0xFAFB\n+/* the A0 support needs the FPGA defines for now */\n+#define I40E_DEV_ID_FPGA_A\t\t0x154B\n+#define I40E_DEV_ID_FPGA_A_VF\t\t0x154C\n \n #define i40e_is_40G_device(d)\t\t((d) == I40E_DEV_ID_QSFP_A  || \\\n \t\t\t\t\t (d) == I40E_DEV_ID_QSFP_B  || \\\n@@ -194,6 +208,8 @@ enum i40e_mac_type {\n \tI40E_MAC_X710,\n \tI40E_MAC_XL710,\n \tI40E_MAC_VF,\n+\tI40E_MAC_FPK,\n+\tI40E_MAC_FPK_VF,\n \tI40E_MAC_GENERIC,\n };\n \n",
    "prefixes": [
        "dpdk-dev",
        "06/18"
    ]
}