diff options
author | David S. Miller <davem@davemloft.net> | 2010-06-24 03:26:27 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-24 03:26:27 +0200 |
commit | 8244132ea89cdd128003f5b9980fab50d8d36d72 (patch) | |
tree | c6cf9327cf9b6bab5bb830bbf389a514f4d7bb95 /include | |
parent | net - IP_NODEFRAG option for IPv4 socket (diff) | |
parent | sky2: enable rx/tx in sky2_phy_reinit() (diff) | |
download | linux-8244132ea89cdd128003f5b9980fab50d8d36d72.tar.xz linux-8244132ea89cdd128003f5b9980fab50d8d36d72.zip |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
net/ipv4/ip_output.c
Diffstat (limited to 'include')
-rw-r--r-- | include/net/snmp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/snmp.h b/include/net/snmp.h index 92456f1035f5..899003d18db9 100644 --- a/include/net/snmp.h +++ b/include/net/snmp.h @@ -134,7 +134,7 @@ struct linux_xfrm_mib { #define SNMP_ADD_STATS_USER(mib, field, addend) \ this_cpu_add(mib[1]->mibs[field], addend) #define SNMP_ADD_STATS(mib, field, addend) \ - this_cpu_add(mib[0]->mibs[field], addend) + this_cpu_add(mib[!in_softirq()]->mibs[field], addend) /* * Use "__typeof__(*mib[0]) *ptr" instead of "__typeof__(mib[0]) ptr" * to make @ptr a non-percpu pointer. |