diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ixgb/ixgb_ethtool.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ixgb/ixgb_ethtool.c b/drivers/net/ixgb/ixgb_ethtool.c index 4db63e01a62b..f6baf2866ca9 100644 --- a/drivers/net/ixgb/ixgb_ethtool.c +++ b/drivers/net/ixgb/ixgb_ethtool.c | |||
@@ -44,6 +44,8 @@ extern void ixgb_free_rx_resources(struct ixgb_adapter *adapter); | |||
44 | extern void ixgb_free_tx_resources(struct ixgb_adapter *adapter); | 44 | extern void ixgb_free_tx_resources(struct ixgb_adapter *adapter); |
45 | extern void ixgb_update_stats(struct ixgb_adapter *adapter); | 45 | extern void ixgb_update_stats(struct ixgb_adapter *adapter); |
46 | 46 | ||
47 | #define IXGB_ALL_RAR_ENTRIES 16 | ||
48 | |||
47 | struct ixgb_stats { | 49 | struct ixgb_stats { |
48 | char stat_string[ETH_GSTRING_LEN]; | 50 | char stat_string[ETH_GSTRING_LEN]; |
49 | int sizeof_stat; | 51 | int sizeof_stat; |
@@ -300,7 +302,7 @@ ixgb_get_regs(struct net_device *netdev, | |||
300 | *reg++ = IXGB_READ_REG(hw, RXCSUM); /* 20 */ | 302 | *reg++ = IXGB_READ_REG(hw, RXCSUM); /* 20 */ |
301 | 303 | ||
302 | /* there are 16 RAR entries in hardware, we only use 3 */ | 304 | /* there are 16 RAR entries in hardware, we only use 3 */ |
303 | for(i = 0; i < 16; i++) { | 305 | for(i = 0; i < IXGB_ALL_RAR_ENTRIES; i++) { |
304 | *reg++ = IXGB_READ_REG_ARRAY(hw, RAL, (i << 1)); /*21,...,51 */ | 306 | *reg++ = IXGB_READ_REG_ARRAY(hw, RAL, (i << 1)); /*21,...,51 */ |
305 | *reg++ = IXGB_READ_REG_ARRAY(hw, RAH, (i << 1)); /*22,...,52 */ | 307 | *reg++ = IXGB_READ_REG_ARRAY(hw, RAH, (i << 1)); /*22,...,52 */ |
306 | } | 308 | } |