mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
mib: add net to TCP_INC_STATS
Fortunately (almost) all the TCP code has a sock to get the net from :) Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a9c19329ec
commit
81cc8a75d9
3 changed files with 8 additions and 8 deletions
|
|
@ -266,7 +266,7 @@ static inline int tcp_too_many_orphans(struct sock *sk, int num)
|
|||
extern struct proto tcp_prot;
|
||||
|
||||
DECLARE_SNMP_STAT(struct tcp_mib, tcp_statistics);
|
||||
#define TCP_INC_STATS(field) SNMP_INC_STATS(tcp_statistics, field)
|
||||
#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_DEC_STATS(field) SNMP_DEC_STATS(tcp_statistics, field)
|
||||
#define TCP_ADD_STATS_USER(field, val) SNMP_ADD_STATS_USER(tcp_statistics, field, val)
|
||||
|
|
|
|||
Loading…
Reference in a new issue