get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 613273,
    "url": "http://patchwork.ozlabs.org/api/patches/613273/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20160421182846.13330.65670.stgit@ixgbe-dev.jf.intel.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20160421182846.13330.65670.stgit@ixgbe-dev.jf.intel.com>",
    "list_archive_url": null,
    "date": "2016-04-21T18:28:46",
    "name": "[1/3] ethtool/ixgbe: Add device ID and mac_type definitions",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "77f25bac126029c84da56d24f8a0d6f003f9ff5c",
    "submitter": {
        "id": 68833,
        "url": "http://patchwork.ozlabs.org/api/people/68833/?format=api",
        "name": "Preethi Banala",
        "email": "preethi.banala@intel.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20160421182846.13330.65670.stgit@ixgbe-dev.jf.intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/613273/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/613273/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@lists.osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Received": [
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ozlabs.org (Postfix) with ESMTP id 3qrSKT0FMzz9sf9\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Apr 2016 04:42:21 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 58F6B33879;\n\tThu, 21 Apr 2016 18:42:20 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id ntOuIzP8V6x0; Thu, 21 Apr 2016 18:42:19 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 3DEFF3387B;\n\tThu, 21 Apr 2016 18:42:19 +0000 (UTC)",
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 312E21C1064\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 21 Apr 2016 18:42:18 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 2C49C95944\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 21 Apr 2016 18:42:18 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id naoJituvIgqC for <intel-wired-lan@lists.osuosl.org>;\n\tThu, 21 Apr 2016 18:42:17 +0000 (UTC)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 93B529598F\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 21 Apr 2016 18:42:17 +0000 (UTC)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga101.fm.intel.com with ESMTP; 21 Apr 2016 11:42:17 -0700",
            "from ixgbe-dev.jf.intel.com ([134.134.170.149])\n\tby orsmga001.jf.intel.com with ESMTP; 21 Apr 2016 11:42:17 -0700"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.24,513,1455004800\"; d=\"scan'208\";a=\"937449174\"",
        "From": "Preethi Banala <preethi.banala@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Thu, 21 Apr 2016 11:28:46 -0700",
        "Message-ID": "<20160421182846.13330.65670.stgit@ixgbe-dev.jf.intel.com>",
        "In-Reply-To": "<20160421182545.13330.59497.stgit@ixgbe-dev.jf.intel.com>",
        "References": "<20160421182545.13330.59497.stgit@ixgbe-dev.jf.intel.com>",
        "User-Agent": "StGit/0.17.1-dirty",
        "MIME-Version": "1.0",
        "Subject": "[Intel-wired-lan] [PATCH 1/3] ethtool/ixgbe: Add device ID and\n\tmac_type definitions",
        "X-BeenThere": "intel-wired-lan@lists.osuosl.org",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>",
        "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>",
        "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>"
    },
    "content": "Add device id macro definitions, mac_type enum definition and update\nget_mac_type() accordingly.\n\nSigned-off-by: Preethi Banala <preethi.banala@intel.com>\n---\n ixgbe.c |   42 ++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 42 insertions(+)",
    "diff": "diff --git a/ixgbe.c b/ixgbe.c\nindex 3928d77da3b9..a3757824e61a 100644\n--- a/ixgbe.c\n+++ b/ixgbe.c\n@@ -63,6 +63,23 @@\n #define IXGBE_SUBDEV_ID_82599_KX4_KR_MEZZ  0x000C\n #define IXGBE_DEV_ID_82599_LS            0x154F\n #define IXGBE_DEV_ID_X540T               0x1528\n+#define IXGBE_DEV_ID_82599_SFP_SF_QP     0x154A\n+#define IXGBE_DEV_ID_82599_QSFP_SF_QP    0x1558\n+#define IXGBE_DEV_ID_X540T1              0x1560\n+\n+#define IXGBE_DEV_ID_X550T\t\t0x1563\n+#define IXGBE_DEV_ID_X550T1\t\t0x15D1\n+#define IXGBE_DEV_ID_X550EM_X_KX4\t0x15AA\n+#define IXGBE_DEV_ID_X550EM_X_KR\t0x15AB\n+#define IXGBE_DEV_ID_X550EM_X_SFP\t0x15AC\n+#define IXGBE_DEV_ID_X550EM_X_10G_T\t0x15AD\n+#define IXGBE_DEV_ID_X550EM_X_1G_T\t0x15AE\n+#define IXGBE_DEV_ID_X550EM_A_KR\t0x15C2\n+#define IXGBE_DEV_ID_X550EM_A_KR_L\t0x15C3\n+#define IXGBE_DEV_ID_X550EM_A_SFP_N\t0x15C4\n+#define IXGBE_DEV_ID_X550EM_A_SGMII\t0x15C6\n+#define IXGBE_DEV_ID_X550EM_A_SGMII_L\t0x15C7\n+#define IXGBE_DEV_ID_X550EM_A_SFP\t0x15CE\n \n /*\n  * Enumerated types specific to the ixgbe hardware\n@@ -73,6 +90,9 @@ enum ixgbe_mac_type {\n \tixgbe_mac_82598EB,\n \tixgbe_mac_82599EB,\n \tixgbe_mac_X540,\n+\tixgbe_mac_x550,\n+\tixgbe_mac_x550em_x,\n+\tixgbe_mac_x550em_a,\n \tixgbe_num_macs\n };\n \n@@ -112,11 +132,33 @@ ixgbe_get_mac_type(u16 device_id)\n \tcase IXGBE_DEV_ID_82599_COMBO_BACKPLANE:\n \tcase IXGBE_SUBDEV_ID_82599_KX4_KR_MEZZ:\n \tcase IXGBE_DEV_ID_82599_LS:\n+\tcase IXGBE_DEV_ID_82599_SFP_SF_QP:\n+\tcase IXGBE_DEV_ID_82599_QSFP_SF_QP:\n \t\tmac_type = ixgbe_mac_82599EB;\n \t\tbreak;\n \tcase IXGBE_DEV_ID_X540T:\n+\tcase IXGBE_DEV_ID_X540T1:\n \t\tmac_type = ixgbe_mac_X540;\n \t\tbreak;\n+\tcase IXGBE_DEV_ID_X550T:\n+\tcase IXGBE_DEV_ID_X550T1:\n+\t\tmac_type = ixgbe_mac_x550;\n+\t\tbreak;\n+\tcase IXGBE_DEV_ID_X550EM_X_KX4:\n+\tcase IXGBE_DEV_ID_X550EM_X_KR:\n+\tcase IXGBE_DEV_ID_X550EM_X_SFP:\n+\tcase IXGBE_DEV_ID_X550EM_X_10G_T:\n+\tcase IXGBE_DEV_ID_X550EM_X_1G_T:\n+\t\tmac_type = ixgbe_mac_x550em_x;\n+\t\tbreak;\n+\tcase IXGBE_DEV_ID_X550EM_A_KR:\n+\tcase IXGBE_DEV_ID_X550EM_A_KR_L:\n+\tcase IXGBE_DEV_ID_X550EM_A_SFP_N:\n+\tcase IXGBE_DEV_ID_X550EM_A_SGMII:\n+\tcase IXGBE_DEV_ID_X550EM_A_SGMII_L:\n+\tcase IXGBE_DEV_ID_X550EM_A_SFP:\n+\t\tmac_type = ixgbe_mac_x550em_a;\n+\t\tbreak;\n \tdefault:\n \t\tmac_type = ixgbe_mac_82598EB;\n \t\tbreak;\n",
    "prefixes": [
        "1/3"
    ]
}