aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ixgb')
-rw-r--r--drivers/net/ixgb/ixgb_ethtool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ixgb/ixgb_ethtool.c b/drivers/net/ixgb/ixgb_ethtool.c
index 6d8192f4314c..949f69df00ce 100644
--- a/drivers/net/ixgb/ixgb_ethtool.c
+++ b/drivers/net/ixgb/ixgb_ethtool.c
@@ -254,14 +254,14 @@ ixgb_set_tso(struct net_device *netdev, uint32_t data)
254static uint32_t 254static uint32_t
255ixgb_get_msglevel(struct net_device *netdev) 255ixgb_get_msglevel(struct net_device *netdev)
256{ 256{
257 struct ixgb_adapter *adapter = netdev->priv; 257 struct ixgb_adapter *adapter = netdev_priv(netdev);
258 return adapter->msg_enable; 258 return adapter->msg_enable;
259} 259}
260 260
261static void 261static void
262ixgb_set_msglevel(struct net_device *netdev, uint32_t data) 262ixgb_set_msglevel(struct net_device *netdev, uint32_t data)
263{ 263{
264 struct ixgb_adapter *adapter = netdev->priv; 264 struct ixgb_adapter *adapter = netdev_priv(netdev);
265 adapter->msg_enable = data; 265 adapter->msg_enable = data;
266} 266}
267#define IXGB_GET_STAT(_A_, _R_) _A_->stats._R_ 267#define IXGB_GET_STAT(_A_, _R_) _A_->stats._R_