Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/509140/?format=api
{ "id": 509140, "url": "http://patchwork.ozlabs.org/api/patches/509140/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1440096383-8915-1-git-send-email-anjali.singhai@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": "<1440096383-8915-1-git-send-email-anjali.singhai@intel.com>", "list_archive_url": null, "date": "2015-08-20T18:46:20", "name": "[1/4] i40e: Remove CONFIG_I40E_VXLAN", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "caf996f748557783a99407fdb165edaf93e9b48e", "submitter": { "id": 65487, "url": "http://patchwork.ozlabs.org/api/people/65487/?format=api", "name": "Singhai, Anjali", "email": "anjali.singhai@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/1440096383-8915-1-git-send-email-anjali.singhai@intel.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/509140/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/509140/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 hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ozlabs.org (Postfix) with ESMTP id C217A140291\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 21 Aug 2015 04:31:06 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id C22B5945C4;\n\tThu, 20 Aug 2015 18:31:05 +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 7KH6PeaqSXM9; Thu, 20 Aug 2015 18:31:05 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 32D938B219;\n\tThu, 20 Aug 2015 18:31:05 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 4A7321C1652\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 20 Aug 2015 18:31:04 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 43E8488DA9\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 20 Aug 2015 18:31:04 +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 mQ0VZlKXIO28 for <intel-wired-lan@lists.osuosl.org>;\n\tThu, 20 Aug 2015 18:31:03 +0000 (UTC)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 1D43088DEE\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 20 Aug 2015 18:31:03 +0000 (UTC)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby orsmga102.jf.intel.com with ESMTP; 20 Aug 2015 11:31:03 -0700", "from asinghai-cp.jf.intel.com ([134.134.3.57])\n\tby fmsmga001.fm.intel.com with ESMTP; 20 Aug 2015 11:31:02 -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.15,715,1432623600\"; d=\"scan'208\";a=\"772608318\"", "From": "Anjali Singhai Jain <anjali.singhai@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Thu, 20 Aug 2015 11:46:20 -0700", "Message-Id": "<1440096383-8915-1-git-send-email-anjali.singhai@intel.com>", "X-Mailer": "git-send-email 1.8.1.4", "Subject": "[Intel-wired-lan] [PATCH 1/4] i40e: Remove CONFIG_I40E_VXLAN", "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": "If the kernel flag CONFIG_VXLAN is true or CONFIG_VXLAN_MODULE is true,\nenable VXLAN offload in the driver.\n\nSigned-off-by: Kiran Patil <kiran.patil@intel.com>\nSigned-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>\n---\n drivers/net/ethernet/intel/Kconfig | 11 -----------\n drivers/net/ethernet/intel/i40e/i40e.h | 4 ----\n drivers/net/ethernet/intel/i40e/i40e_main.c | 14 ++++----------\n 3 files changed, 4 insertions(+), 25 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/Kconfig b/drivers/net/ethernet/intel/Kconfig\nindex 4163b16..061e4e0 100644\n--- a/drivers/net/ethernet/intel/Kconfig\n+++ b/drivers/net/ethernet/intel/Kconfig\n@@ -269,17 +269,6 @@ config I40E\n \t To compile this driver as a module, choose M here. The module\n \t will be called i40e.\n \n-config I40E_VXLAN\n-\tbool \"Virtual eXtensible Local Area Network Support\"\n-\tdefault n\n-\tdepends on I40E && VXLAN && !(I40E=y && VXLAN=m)\n-\t---help---\n-\t This allows one to create VXLAN virtual interfaces that provide\n-\t Layer 2 Networks over Layer 3 Networks. VXLAN is often used\n-\t to tunnel virtual network infrastructure in virtualized environments.\n-\t Say Y here if you want to use Virtual eXtensible Local Area Network\n-\t (VXLAN) in the driver.\n-\n config I40E_DCB\n \tbool \"Data Center Bridging (DCB) Support\"\n \tdefault n\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e.h b/drivers/net/ethernet/intel/i40e/i40e.h\nindex c9fa289..257f7d8 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e.h\n@@ -274,11 +274,9 @@ struct i40e_pf {\n \tu32 fd_atr_cnt;\n \tu32 fd_tcp_rule;\n \n-#ifdef CONFIG_I40E_VXLAN\n \t__be16 vxlan_ports[I40E_MAX_PF_UDP_OFFLOAD_PORTS];\n \tu16 pending_vxlan_bitmap;\n \n-#endif\n \tenum i40e_interrupt_policy int_policy;\n \tu16 rx_itr_default;\n \tu16 tx_itr_default;\n@@ -316,9 +314,7 @@ struct i40e_pf {\n #define I40E_FLAG_FD_ATR_ENABLED\t\tBIT_ULL(22)\n #define I40E_FLAG_PTP\t\t\t\tBIT_ULL(25)\n #define I40E_FLAG_MFP_ENABLED\t\t\tBIT_ULL(26)\n-#ifdef CONFIG_I40E_VXLAN\n #define I40E_FLAG_VXLAN_FILTER_SYNC\t\tBIT_ULL(27)\n-#endif\n #define I40E_FLAG_PORT_ID_VALID\t\t\tBIT_ULL(28)\n #define I40E_FLAG_DCB_CAPABLE\t\t\tBIT_ULL(29)\n #define I40E_FLAG_RSS_AQ_CAPABLE\t\tBIT_ULL(31)\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex aef0a4c..05081d1 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -28,7 +28,7 @@\n #include \"i40e.h\"\n #include \"i40e_helper.h\"\n #include \"i40e_diag.h\"\n-#ifdef CONFIG_I40E_VXLAN\n+#if defined(CONFIG_VXLAN) || defined(CONFIG_VXLAN_MODULE)\n #include <net/vxlan.h>\n #endif\n \n@@ -4934,7 +4934,7 @@ int i40e_open(struct net_device *netdev)\n \t\t\t\t\t\t TCP_FLAG_CWR) >> 16);\n \twr32(&pf->hw, I40E_GLLAN_TSOMSK_L, be32_to_cpu(TCP_FLAG_CWR) >> 16);\n \n-#ifdef CONFIG_I40E_VXLAN\n+#if defined(CONFIG_VXLAN) || defined(CONFIG_VXLAN_MODULE)\n \tvxlan_get_rx_port(netdev);\n #endif\n \n@@ -6659,13 +6659,13 @@ static void i40e_handle_mdd_event(struct i40e_pf *pf)\n \ti40e_flush(hw);\n }\n \n-#ifdef CONFIG_I40E_VXLAN\n /**\n * i40e_sync_vxlan_filters_subtask - Sync the VSI filter list with HW\n * @pf: board private structure\n **/\n static void i40e_sync_vxlan_filters_subtask(struct i40e_pf *pf)\n {\n+#if defined(CONFIG_VXLAN) || defined(CONFIG_VXLAN_MODULE)\n \tstruct i40e_hw *hw = &pf->hw;\n \ti40e_status ret;\n \t__be16 port;\n@@ -6699,9 +6699,9 @@ static void i40e_sync_vxlan_filters_subtask(struct i40e_pf *pf)\n \t\t\t}\n \t\t}\n \t}\n+#endif\n }\n \n-#endif\n /**\n * i40e_service_task - Run the driver's async subtasks\n * @work: pointer to work_struct containing our data\n@@ -6725,9 +6725,7 @@ static void i40e_service_task(struct work_struct *work)\n \ti40e_watchdog_subtask(pf);\n \ti40e_fdir_reinit_subtask(pf);\n \ti40e_sync_filters_subtask(pf);\n-#ifdef CONFIG_I40E_VXLAN\n \ti40e_sync_vxlan_filters_subtask(pf);\n-#endif\n \ti40e_clean_adminq_subtask(pf);\n \n \ti40e_service_event_complete(pf);\n@@ -7944,7 +7942,6 @@ static int i40e_set_features(struct net_device *netdev,\n \treturn 0;\n }\n \n-#ifdef CONFIG_I40E_VXLAN\n /**\n * i40e_get_vxlan_port_idx - Lookup a possibly offloaded for Rx UDP port\n * @pf: board private structure\n@@ -8039,7 +8036,6 @@ static void i40e_del_vxlan_port(struct net_device *netdev,\n \t}\n }\n \n-#endif\n static int i40e_get_phys_port_id(struct net_device *netdev,\n \t\t\t\t struct netdev_phys_item_id *ppid)\n {\n@@ -8262,10 +8258,8 @@ static const struct net_device_ops i40e_netdev_ops = {\n \t.ndo_get_vf_config\t= i40e_ndo_get_vf_config,\n \t.ndo_set_vf_link_state\t= i40e_ndo_set_vf_link_state,\n \t.ndo_set_vf_spoofchk\t= i40e_ndo_set_vf_spoofchk,\n-#ifdef CONFIG_I40E_VXLAN\n \t.ndo_add_vxlan_port\t= i40e_add_vxlan_port,\n \t.ndo_del_vxlan_port\t= i40e_del_vxlan_port,\n-#endif\n \t.ndo_get_phys_port_id\t= i40e_get_phys_port_id,\n \t.ndo_fdb_add\t\t= i40e_ndo_fdb_add,\n \t.ndo_features_check\t= i40e_features_check,\n", "prefixes": [ "1/4" ] }