aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-07-16 23:21:42 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-16 23:21:42 -0400
commita9c19329eccdb145a08a4a2e969d7b40c54c9bcc (patch)
tree3cee2cdcdb0270fcd5e7765cdb4e8b5882afecb0 /include/net/tcp.h
parentf10f84314d5adc0ba6ca2a0877442de63e226130 (diff)
tcp: add net to tcp_mib_init
This one sets TCP MIBs after zeroing them, and thus requires the net. The existing single caller can use init_net (temporarily). Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 048f8de724c2..b9d0ba618b6b 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1024,7 +1024,7 @@ static inline int tcp_paws_check(const struct tcp_options_received *rx_opt, int
1024 1024
1025#define TCP_CHECK_TIMER(sk) do { } while (0) 1025#define TCP_CHECK_TIMER(sk) do { } while (0)
1026 1026
1027static inline void tcp_mib_init(void) 1027static inline void tcp_mib_init(struct net *net)
1028{ 1028{
1029 /* See RFC 2012 */ 1029 /* See RFC 2012 */
1030 TCP_ADD_STATS_USER(TCP_MIB_RTOALGORITHM, 1); 1030 TCP_ADD_STATS_USER(TCP_MIB_RTOALGORITHM, 1);