diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ip.h | 2 | ||||
-rw-r--r-- | include/net/tcp.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index b42a43499856..21df167a8e5b 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
@@ -162,7 +162,7 @@ DECLARE_SNMP_STAT(struct ipstats_mib, ip_statistics); | |||
162 | #define IP_ADD_STATS_BH(net, field, val) SNMP_ADD_STATS_BH(ip_statistics, field, val) | 162 | #define IP_ADD_STATS_BH(net, field, val) SNMP_ADD_STATS_BH(ip_statistics, field, val) |
163 | DECLARE_SNMP_STAT(struct linux_mib, net_statistics); | 163 | DECLARE_SNMP_STAT(struct linux_mib, net_statistics); |
164 | #define NET_INC_STATS(net, field) do { (void)net; SNMP_INC_STATS(net_statistics, field); } while (0) | 164 | #define NET_INC_STATS(net, field) do { (void)net; SNMP_INC_STATS(net_statistics, field); } while (0) |
165 | #define NET_INC_STATS_BH(field) SNMP_INC_STATS_BH(net_statistics, field) | 165 | #define NET_INC_STATS_BH(net, field) do { (void)net; SNMP_INC_STATS_BH(net_statistics, field); } while (0) |
166 | #define NET_INC_STATS_USER(field) SNMP_INC_STATS_USER(net_statistics, field) | 166 | #define NET_INC_STATS_USER(field) SNMP_INC_STATS_USER(net_statistics, field) |
167 | #define NET_ADD_STATS_BH(field, adnd) SNMP_ADD_STATS_BH(net_statistics, field, adnd) | 167 | #define NET_ADD_STATS_BH(field, adnd) SNMP_ADD_STATS_BH(net_statistics, field, adnd) |
168 | #define NET_ADD_STATS_USER(field, adnd) SNMP_ADD_STATS_USER(net_statistics, field, adnd) | 168 | #define NET_ADD_STATS_USER(field, adnd) SNMP_ADD_STATS_USER(net_statistics, field, adnd) |
diff --git a/include/net/tcp.h b/include/net/tcp.h index c25cb5278b95..60e5be8b925b 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -894,7 +894,7 @@ static inline int tcp_prequeue(struct sock *sk, struct sk_buff *skb) | |||
894 | 894 | ||
895 | while ((skb1 = __skb_dequeue(&tp->ucopy.prequeue)) != NULL) { | 895 | while ((skb1 = __skb_dequeue(&tp->ucopy.prequeue)) != NULL) { |
896 | sk->sk_backlog_rcv(sk, skb1); | 896 | sk->sk_backlog_rcv(sk, skb1); |
897 | NET_INC_STATS_BH(LINUX_MIB_TCPPREQUEUEDROPPED); | 897 | NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPPREQUEUEDROPPED); |
898 | } | 898 | } |
899 | 899 | ||
900 | tp->ucopy.memory = 0; | 900 | tp->ucopy.memory = 0; |