Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327385
b: refs/heads/master
c: d25398d
h: refs/heads/master
i:
  327383: 0937c92
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Aug 6, 2012
1 parent b317e07 commit faced58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 9eb43e765368f835d92c93844ebce30da7efeb84
refs/heads/master: d25398df59b561a26cb4000ceb4dea8a3ff94d22
10 changes: 6 additions & 4 deletions trunk/include/net/snmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,15 @@ struct linux_xfrm_mib {
*/
#define SNMP_UPD_PO_STATS(mib, basefield, addend) \
do { \
this_cpu_inc(mib[0]->mibs[basefield##PKTS]); \
this_cpu_add(mib[0]->mibs[basefield##OCTETS], addend); \
__typeof__(*mib[0]->mibs) *ptr = mib[0]->mibs; \
this_cpu_inc(ptr[basefield##PKTS]); \
this_cpu_add(ptr[basefield##OCTETS], addend); \
} while (0)
#define SNMP_UPD_PO_STATS_BH(mib, basefield, addend) \
do { \
__this_cpu_inc(mib[0]->mibs[basefield##PKTS]); \
__this_cpu_add(mib[0]->mibs[basefield##OCTETS], addend); \
__typeof__(*mib[0]->mibs) *ptr = mib[0]->mibs; \
__this_cpu_inc(ptr[basefield##PKTS]); \
__this_cpu_add(ptr[basefield##OCTETS], addend); \
} while (0)


Expand Down

0 comments on commit faced58

Please sign in to comment.