diff options
Diffstat (limited to 'drivers/net/igb/igb_ethtool.c')
-rw-r--r-- | drivers/net/igb/igb_ethtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/igb/igb_ethtool.c b/drivers/net/igb/igb_ethtool.c index 58906c984be..f89fdc7bd77 100644 --- a/drivers/net/igb/igb_ethtool.c +++ b/drivers/net/igb/igb_ethtool.c | |||
@@ -101,8 +101,8 @@ static const struct igb_stats igb_gstrings_stats[] = { | |||
101 | }; | 101 | }; |
102 | 102 | ||
103 | #define IGB_QUEUE_STATS_LEN \ | 103 | #define IGB_QUEUE_STATS_LEN \ |
104 | ((((struct igb_adapter *)netdev->priv)->num_rx_queues + \ | 104 | ((((struct igb_adapter *)netdev_priv(netdev))->num_rx_queues + \ |
105 | ((struct igb_adapter *)netdev->priv)->num_tx_queues) * \ | 105 | ((struct igb_adapter *)netdev_priv(netdev))->num_tx_queues) * \ |
106 | (sizeof(struct igb_queue_stats) / sizeof(u64))) | 106 | (sizeof(struct igb_queue_stats) / sizeof(u64))) |
107 | #define IGB_GLOBAL_STATS_LEN \ | 107 | #define IGB_GLOBAL_STATS_LEN \ |
108 | sizeof(igb_gstrings_stats) / sizeof(struct igb_stats) | 108 | sizeof(igb_gstrings_stats) / sizeof(struct igb_stats) |