Skip to content

Commit 0e88898

Browse files
ashish-n-shahJeff Kirsher
authored andcommitted
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 <[email protected]> Tested-by: Jim Young <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 88eee9b commit 0e88898

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*******************************************************************************
22
*
33
* Intel Ethernet Controller XL710 Family Linux Virtual Function Driver
4-
* Copyright(c) 2013 - 2014 Intel Corporation.
4+
* Copyright(c) 2013 - 2015 Intel Corporation.
55
*
66
* This program is free software; you can redistribute it and/or modify it
77
* under the terms and conditions of the GNU General Public License,
@@ -180,7 +180,7 @@ static u32 i40evf_get_msglevel(struct net_device *netdev)
180180
}
181181

182182
/**
183-
* i40evf_get_msglevel - Set debug message level
183+
* i40evf_set_msglevel - Set debug message level
184184
* @netdev: network interface device structure
185185
* @data: message level
186186
*
@@ -191,6 +191,8 @@ static void i40evf_set_msglevel(struct net_device *netdev, u32 data)
191191
{
192192
struct i40evf_adapter *adapter = netdev_priv(netdev);
193193

194+
if (I40E_DEBUG_USER & data)
195+
adapter->hw.debug_mask = data;
194196
adapter->msg_enable = data;
195197
}
196198

0 commit comments

Comments
 (0)