]> git.baikalelectronics.ru Git - kernel.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)
commit497c488a6363007ef58016b8414b9b2cf23ea2c7
treead5d96e60d1ff4e91f5b23d7ae13884581ae2441
parent3b34abb2c79a2d9623c75cac559ae0aa28d76341
snmp: fix SNMP_ADD_STATS()

commit 6ba60c965f67 (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