Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/512642/?format=api
{ "id": 512642, "url": "http://patchwork.ozlabs.org/api/patches/512642/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1441065295-234333-11-git-send-email-catherine.sullivan@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": "<1441065295-234333-11-git-send-email-catherine.sullivan@intel.com>", "list_archive_url": null, "date": "2015-08-31T23:54:50", "name": "[next,S14,10/15] i40e/i40evf: split device ids into a separate file", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "5b500759f28c0e67e5d03022ca20f8eee7ec3bf7", "submitter": { "id": 13931, "url": "http://patchwork.ozlabs.org/api/people/13931/?format=api", "name": "Catherine Sullivan", "email": "catherine.sullivan@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/1441065295-234333-11-git-send-email-catherine.sullivan@intel.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/512642/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/512642/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 fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ozlabs.org (Postfix) with ESMTP id A3E58140663\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 1 Sep 2015 09:54:15 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 01465A3733;\n\tMon, 31 Aug 2015 23:54:15 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id HMOT0FP3vTt2; Mon, 31 Aug 2015 23:54:13 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 9DE65A372B;\n\tMon, 31 Aug 2015 23:54:12 +0000 (UTC)", "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id B61071C1009\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 31 Aug 2015 23:54:10 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id B032433A99\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 31 Aug 2015 23:54:10 +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 PaWCwL5SSesh for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 31 Aug 2015 23:54:08 +0000 (UTC)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby silver.osuosl.org (Postfix) with ESMTP id D9E873315B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 31 Aug 2015 23:54:08 +0000 (UTC)", "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga102.fm.intel.com with ESMTP; 31 Aug 2015 16:54:08 -0700", "from catheri1-tigger.jf.intel.com ([134.134.176.92])\n\tby orsmga003.jf.intel.com with ESMTP; 31 Aug 2015 16:54:08 -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.17,445,1437462000\"; d=\"scan'208\";a=\"635798451\"", "From": "Catherine Sullivan <catherine.sullivan@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Mon, 31 Aug 2015 19:54:50 -0400", "Message-Id": "<1441065295-234333-11-git-send-email-catherine.sullivan@intel.com>", "X-Mailer": "git-send-email 1.9.3", "In-Reply-To": "<1441065295-234333-1-git-send-email-catherine.sullivan@intel.com>", "References": "<1441065295-234333-1-git-send-email-catherine.sullivan@intel.com>", "Subject": "[Intel-wired-lan] [next PATCH S14 10/15] i40e/i40evf: split device\n\tids into a separate file", "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>", "MIME-Version": "1.0", "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": "From: Shannon Nelson <shannon.nelson@intel.com>\n\nDue to desires to write userland drivers, and other requests, without\nneeding the rest of the include files, the device ids are pulled out\ninto a standalone file.\n\nSigned-off-by: Shannon Nelson <shannon.nelson@intel.com>\nChange-ID: Ic0b047dbf9d4b0891892309c1f2079f56d9b60e8\n---\n drivers/net/ethernet/intel/i40e/i40e_devids.h | 55 +++++++++++++++++++++++++\n drivers/net/ethernet/intel/i40e/i40e_type.h | 26 +-----------\n drivers/net/ethernet/intel/i40evf/i40e_devids.h | 55 +++++++++++++++++++++++++\n drivers/net/ethernet/intel/i40evf/i40e_type.h | 26 +-----------\n 4 files changed, 112 insertions(+), 50 deletions(-)\n create mode 100644 drivers/net/ethernet/intel/i40e/i40e_devids.h\n create mode 100644 drivers/net/ethernet/intel/i40evf/i40e_devids.h", "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_devids.h b/drivers/net/ethernet/intel/i40e/i40e_devids.h\nnew file mode 100644\nindex 0000000..c601ca4\n--- /dev/null\n+++ b/drivers/net/ethernet/intel/i40e/i40e_devids.h\n@@ -0,0 +1,55 @@\n+/*******************************************************************************\n+ *\n+ * Intel Ethernet Controller XL710 Family Linux Driver\n+ * Copyright(c) 2013 - 2015 Intel Corporation.\n+ *\n+ * This program is free software; you can redistribute it and/or modify it\n+ * under the terms and conditions of the GNU General Public License,\n+ * version 2, as published by the Free Software Foundation.\n+ *\n+ * This program is distributed in the hope it will be useful, but WITHOUT\n+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\n+ * more details.\n+ *\n+ * You should have received a copy of the GNU General Public License along\n+ * with this program. If not, see <http://www.gnu.org/licenses/>.\n+ *\n+ * The full GNU General Public License is included in this distribution in\n+ * the file called \"COPYING\".\n+ *\n+ * Contact Information:\n+ * e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>\n+ * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497\n+ *\n+ ******************************************************************************/\n+\n+#ifndef _I40E_DEVIDS_H_\n+#define _I40E_DEVIDS_H_\n+\n+/* Device IDs */\n+#define I40E_DEV_ID_SFP_XL710\t\t0x1572\n+#define I40E_DEV_ID_QEMU\t\t0x1574\n+#define I40E_DEV_ID_KX_A\t\t0x157F\n+#define I40E_DEV_ID_KX_B\t\t0x1580\n+#define I40E_DEV_ID_KX_C\t\t0x1581\n+#define I40E_DEV_ID_QSFP_A\t\t0x1583\n+#define I40E_DEV_ID_QSFP_B\t\t0x1584\n+#define I40E_DEV_ID_QSFP_C\t\t0x1585\n+#define I40E_DEV_ID_10G_BASE_T\t\t0x1586\n+#define I40E_DEV_ID_20G_KR2\t\t0x1587\n+#define I40E_DEV_ID_20G_KR2_A\t\t0x1588\n+#define I40E_DEV_ID_10G_BASE_T4\t\t0x1589\n+#define I40E_DEV_ID_VF\t\t\t0x154C\n+#define I40E_DEV_ID_VF_HV\t\t0x1571\n+#define I40E_DEV_ID_SFP_X722\t\t0x37D0\n+#define I40E_DEV_ID_1G_BASE_T_X722\t0x37D1\n+#define I40E_DEV_ID_10G_BASE_T_X722\t0x37D2\n+#define I40E_DEV_ID_X722_VF\t\t0x37CD\n+#define I40E_DEV_ID_X722_VF_HV\t\t0x37D9\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+\t\t\t\t\t (d) == I40E_DEV_ID_QSFP_C)\n+\n+#endif /* _I40E_DEVIDS_H_ */\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_type.h b/drivers/net/ethernet/intel/i40e/i40e_type.h\nindex 4ec3ffa..102d0c4 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_type.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_type.h\n@@ -33,31 +33,7 @@\n #include \"i40e_adminq.h\"\n #include \"i40e_hmc.h\"\n #include \"i40e_lan_hmc.h\"\n-\n-/* Device IDs */\n-#define I40E_DEV_ID_SFP_XL710\t\t0x1572\n-#define I40E_DEV_ID_QEMU\t\t0x1574\n-#define I40E_DEV_ID_KX_A\t\t0x157F\n-#define I40E_DEV_ID_KX_B\t\t0x1580\n-#define I40E_DEV_ID_KX_C\t\t0x1581\n-#define I40E_DEV_ID_QSFP_A\t\t0x1583\n-#define I40E_DEV_ID_QSFP_B\t\t0x1584\n-#define I40E_DEV_ID_QSFP_C\t\t0x1585\n-#define I40E_DEV_ID_10G_BASE_T\t\t0x1586\n-#define I40E_DEV_ID_20G_KR2\t\t0x1587\n-#define I40E_DEV_ID_20G_KR2_A\t\t0x1588\n-#define I40E_DEV_ID_10G_BASE_T4\t\t0x1589\n-#define I40E_DEV_ID_VF\t\t\t0x154C\n-#define I40E_DEV_ID_VF_HV\t\t0x1571\n-#define I40E_DEV_ID_SFP_X722\t\t0x37D0\n-#define I40E_DEV_ID_1G_BASE_T_X722\t0x37D1\n-#define I40E_DEV_ID_10G_BASE_T_X722\t0x37D2\n-#define I40E_DEV_ID_X722_VF\t\t0x37CD\n-#define I40E_DEV_ID_X722_VF_HV\t\t0x37D9\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-\t\t\t\t\t (d) == I40E_DEV_ID_QSFP_C)\n+#include \"i40e_devids.h\"\n \n /* I40E_MASK is a macro used on 32 bit registers */\n #define I40E_MASK(mask, shift) (mask << shift)\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40e_devids.h b/drivers/net/ethernet/intel/i40evf/i40e_devids.h\nnew file mode 100644\nindex 0000000..e6a39c9\n--- /dev/null\n+++ b/drivers/net/ethernet/intel/i40evf/i40e_devids.h\n@@ -0,0 +1,55 @@\n+/*******************************************************************************\n+ *\n+ * Intel Ethernet Controller XL710 Family Linux Virtual Function Driver\n+ * Copyright(c) 2013 - 2015 Intel Corporation.\n+ *\n+ * This program is free software; you can redistribute it and/or modify it\n+ * under the terms and conditions of the GNU General Public License,\n+ * version 2, as published by the Free Software Foundation.\n+ *\n+ * This program is distributed in the hope it will be useful, but WITHOUT\n+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\n+ * more details.\n+ *\n+ * You should have received a copy of the GNU General Public License along\n+ * with this program. If not, see <http://www.gnu.org/licenses/>.\n+ *\n+ * The full GNU General Public License is included in this distribution in\n+ * the file called \"COPYING\".\n+ *\n+ * Contact Information:\n+ * e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>\n+ * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497\n+ *\n+ ******************************************************************************/\n+\n+#ifndef _I40E_DEVIDS_H_\n+#define _I40E_DEVIDS_H_\n+\n+/* Device IDs */\n+#define I40E_DEV_ID_SFP_XL710\t\t0x1572\n+#define I40E_DEV_ID_QEMU\t\t0x1574\n+#define I40E_DEV_ID_KX_A\t\t0x157F\n+#define I40E_DEV_ID_KX_B\t\t0x1580\n+#define I40E_DEV_ID_KX_C\t\t0x1581\n+#define I40E_DEV_ID_QSFP_A\t\t0x1583\n+#define I40E_DEV_ID_QSFP_B\t\t0x1584\n+#define I40E_DEV_ID_QSFP_C\t\t0x1585\n+#define I40E_DEV_ID_10G_BASE_T\t\t0x1586\n+#define I40E_DEV_ID_20G_KR2\t\t0x1587\n+#define I40E_DEV_ID_20G_KR2_A\t\t0x1588\n+#define I40E_DEV_ID_10G_BASE_T4\t\t0x1589\n+#define I40E_DEV_ID_VF\t\t\t0x154C\n+#define I40E_DEV_ID_VF_HV\t\t0x1571\n+#define I40E_DEV_ID_SFP_X722\t\t0x37D0\n+#define I40E_DEV_ID_1G_BASE_T_X722\t0x37D1\n+#define I40E_DEV_ID_10G_BASE_T_X722\t0x37D2\n+#define I40E_DEV_ID_X722_VF\t\t0x37CD\n+#define I40E_DEV_ID_X722_VF_HV\t\t0x37D9\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+\t\t\t\t\t (d) == I40E_DEV_ID_QSFP_C)\n+\n+#endif /* _I40E_DEVIDS_H_ */\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40e_type.h b/drivers/net/ethernet/intel/i40evf/i40e_type.h\nindex b3c65dd..6dbace3 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40e_type.h\n+++ b/drivers/net/ethernet/intel/i40evf/i40e_type.h\n@@ -33,31 +33,7 @@\n #include \"i40e_adminq.h\"\n #include \"i40e_hmc.h\"\n #include \"i40e_lan_hmc.h\"\n-\n-/* Device IDs */\n-#define I40E_DEV_ID_SFP_XL710\t\t0x1572\n-#define I40E_DEV_ID_QEMU\t\t0x1574\n-#define I40E_DEV_ID_KX_A\t\t0x157F\n-#define I40E_DEV_ID_KX_B\t\t0x1580\n-#define I40E_DEV_ID_KX_C\t\t0x1581\n-#define I40E_DEV_ID_QSFP_A\t\t0x1583\n-#define I40E_DEV_ID_QSFP_B\t\t0x1584\n-#define I40E_DEV_ID_QSFP_C\t\t0x1585\n-#define I40E_DEV_ID_10G_BASE_T\t\t0x1586\n-#define I40E_DEV_ID_20G_KR2\t\t0x1587\n-#define I40E_DEV_ID_20G_KR2_A\t\t0x1588\n-#define I40E_DEV_ID_10G_BASE_T4\t\t0x1589\n-#define I40E_DEV_ID_VF\t\t\t0x154C\n-#define I40E_DEV_ID_VF_HV\t\t0x1571\n-#define I40E_DEV_ID_SFP_X722\t\t0x37D0\n-#define I40E_DEV_ID_1G_BASE_T_X722\t0x37D1\n-#define I40E_DEV_ID_10G_BASE_T_X722\t0x37D2\n-#define I40E_DEV_ID_X722_VF\t\t0x37CD\n-#define I40E_DEV_ID_X722_VF_HV\t\t0x37D9\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-\t\t\t\t\t (d) == I40E_DEV_ID_QSFP_C)\n+#include \"i40e_devids.h\"\n \n /* I40E_MASK is a macro used on 32 bit registers */\n #define I40E_MASK(mask, shift) (mask << shift)\n", "prefixes": [ "next", "S14", "10/15" ] }