Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27322
b: refs/heads/master
c: c85fd6f
h: refs/heads/master
v: v3
  • Loading branch information
Auke Kok authored and Auke Kok committed May 23, 2006
1 parent 1ae1952 commit 4f60e6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 940829e2f9d89d3caddc852bca9018cf503ea719
refs/heads/master: c85fd6f0dedcec411438768bb5ebd133b1ae3347
4 changes: 3 additions & 1 deletion trunk/drivers/net/ixgb/ixgb_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ extern void ixgb_free_rx_resources(struct ixgb_adapter *adapter);
extern void ixgb_free_tx_resources(struct ixgb_adapter *adapter);
extern void ixgb_update_stats(struct ixgb_adapter *adapter);

#define IXGB_ALL_RAR_ENTRIES 16

struct ixgb_stats {
char stat_string[ETH_GSTRING_LEN];
int sizeof_stat;
Expand Down Expand Up @@ -300,7 +302,7 @@ ixgb_get_regs(struct net_device *netdev,
*reg++ = IXGB_READ_REG(hw, RXCSUM); /* 20 */

/* there are 16 RAR entries in hardware, we only use 3 */
for(i = 0; i < 16; i++) {
for(i = 0; i < IXGB_ALL_RAR_ENTRIES; i++) {
*reg++ = IXGB_READ_REG_ARRAY(hw, RAL, (i << 1)); /*21,...,51 */
*reg++ = IXGB_READ_REG_ARRAY(hw, RAH, (i << 1)); /*22,...,52 */
}
Expand Down

0 comments on commit 4f60e6d

Please sign in to comment.