mib: add net to TCP_INC_STATS_BH
Same as before - the sock is always there to get the net from, but there are also some places with the net already saved on the stack. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
81cc8a75d9
commit
63231bddf6
@@ -267,7 +267,7 @@ extern struct proto tcp_prot;
|
||||
|
||||
DECLARE_SNMP_STAT(struct tcp_mib, tcp_statistics);
|
||||
#define TCP_INC_STATS(net, field) do { (void)net; SNMP_INC_STATS(tcp_statistics, field); } while (0)
|
||||
#define TCP_INC_STATS_BH(field) SNMP_INC_STATS_BH(tcp_statistics, field)
|
||||
#define TCP_INC_STATS_BH(net, field) do { (void)net; SNMP_INC_STATS_BH(tcp_statistics, field); } while (0)
|
||||
#define TCP_DEC_STATS(field) SNMP_DEC_STATS(tcp_statistics, field)
|
||||
#define TCP_ADD_STATS_USER(field, val) SNMP_ADD_STATS_USER(tcp_statistics, field, val)
|
||||
|
||||
|
Reference in New Issue
Block a user