]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
snmp: fix SNMP_ADD_STATS()
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 23 Jun 2010 00:32:03 +0000 (00:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jun 2010 18:48:19 +0000 (11:48 -0700)
commit8f1c14b2e3b1805d3e9e6a306d07f5371ea703a7
treead5d96e60d1ff4e91f5b23d7ae13884581ae2441
parent8ceedea7c2600a1018d20f67e766c0773b59391a
snmp: fix SNMP_ADD_STATS()

commit aa2ea0586d9d (tcp: fix outsegs stat for TSO segments) incorrectly
assumed SNMP_ADD_STATS() was used from BH context.

Fix this using mib[!in_softirq()] instead of mib[0]

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/snmp.h