From: Pavel Emelyanov Date: Thu, 17 Jul 2008 03:21:42 +0000 (-0700) Subject: tcp: add net to tcp_mib_init X-Git-Tag: v3.12-rc1~19957^2~98 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9c19329eccdb145a08a4a2e969d7b40c54c9bcc;p=kernel%2Fkernel-generic.git 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 Signed-off-by: David S. Miller --- diff --git a/include/net/tcp.h b/include/net/tcp.h index 048f8de..b9d0ba6 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 #define TCP_CHECK_TIMER(sk) do { } while (0) -static inline void tcp_mib_init(void) +static inline void tcp_mib_init(struct net *net) { /* See RFC 2012 */ TCP_ADD_STATS_USER(TCP_MIB_RTOALGORITHM, 1); diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index dc41133..95a966d 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -1363,7 +1363,7 @@ static int __init init_ipv4_mibs(void) sizeof(struct udp_mib)) < 0) goto err_udplite_mib; - tcp_mib_init(); + tcp_mib_init(&init_net); return 0;