diff options
author | Ashish Shah <ashish.n.shah@intel.com> | 2015-02-06 03:52:10 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2015-02-24 23:59:12 -0500 |
commit | 0e888980a3c4f4751d0898ca9153285199224ff8 (patch) | |
tree | de2bf424cce9d94f474c36dbcec872ab22846758 /drivers/net/ethernet/intel/i40evf | |
parent | 88eee9bc540683b425033ec494afe1219e5df054 (diff) |
i40evf: allow enabling of debug prints via ethtool
Copy setting from ethtool to the HW specific struct to actually
enable prints. Change print from i40e to i40evf to differentiate
drivers in bare metal scenarios.
Also update the copyright year.
Change-ID: I06fee26247299a08f2e1c70fc811a9ea0931c4dd
Signed-off-by: Ashish Shah <ashish.n.shah@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40evf')
-rw-r--r-- | drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c b/drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c index 69b97bac182c..c5ffaccb59d3 100644 --- a/drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c +++ b/drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | * | 2 | * |
3 | * Intel Ethernet Controller XL710 Family Linux Virtual Function Driver | 3 | * Intel Ethernet Controller XL710 Family Linux Virtual Function Driver |
4 | * Copyright(c) 2013 - 2014 Intel Corporation. | 4 | * Copyright(c) 2013 - 2015 Intel Corporation. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -180,7 +180,7 @@ static u32 i40evf_get_msglevel(struct net_device *netdev) | |||
180 | } | 180 | } |
181 | 181 | ||
182 | /** | 182 | /** |
183 | * i40evf_get_msglevel - Set debug message level | 183 | * i40evf_set_msglevel - Set debug message level |
184 | * @netdev: network interface device structure | 184 | * @netdev: network interface device structure |
185 | * @data: message level | 185 | * @data: message level |
186 | * | 186 | * |
@@ -191,6 +191,8 @@ static void i40evf_set_msglevel(struct net_device *netdev, u32 data) | |||
191 | { | 191 | { |
192 | struct i40evf_adapter *adapter = netdev_priv(netdev); | 192 | struct i40evf_adapter *adapter = netdev_priv(netdev); |
193 | 193 | ||
194 | if (I40E_DEBUG_USER & data) | ||
195 | adapter->hw.debug_mask = data; | ||
194 | adapter->msg_enable = data; | 196 | adapter->msg_enable = data; |
195 | } | 197 | } |
196 | 198 | ||