Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184196
b: refs/heads/master
c: c9885fe
h: refs/heads/master
v: v3
  • Loading branch information
Patrick Rabau authored and David S. Miller committed Feb 16, 2010
1 parent 9c491aa commit 251104c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: beb499afe3c9c006bb2d66ceaff0f354d0405ff4
refs/heads/master: c9885fe5a76dea798543f2938a872bc159e8e69a
10 changes: 5 additions & 5 deletions trunk/drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -6555,16 +6555,16 @@ bnx2_save_stats(struct bnx2 *bp)
u32 hi;
u64 lo;

hi = *(temp_stats + i) + *(hw_stats + i);
lo = *(temp_stats + i + 1) + *(hw_stats + i + 1);
hi = temp_stats[i] + hw_stats[i];
lo = (u64) temp_stats[i + 1] + (u64) hw_stats[i + 1];
if (lo > 0xffffffff)
hi++;
*(temp_stats + i) = hi;
*(temp_stats + i + 1) = lo & 0xffffffff;
temp_stats[i] = hi;
temp_stats[i + 1] = lo & 0xffffffff;
}

for ( ; i < sizeof(struct statistics_block) / 4; i++)
*(temp_stats + i) = *(temp_stats + i) + *(hw_stats + i);
temp_stats[i] += hw_stats[i];
}

#define GET_64BIT_NET_STATS64(ctr) \
Expand Down

0 comments on commit 251104c

Please sign in to comment.