diff options
Diffstat (limited to 'net/ipv4/ip_fragment.c')
-rw-r--r-- | net/ipv4/ip_fragment.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c index 56211ef46eed..cd8c83025b48 100644 --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c | |||
@@ -95,9 +95,9 @@ static struct inet_frags_ctl ip4_frags_ctl __read_mostly = { | |||
95 | 95 | ||
96 | static struct inet_frags ip4_frags; | 96 | static struct inet_frags ip4_frags; |
97 | 97 | ||
98 | int ip_frag_nqueues(void) | 98 | int ip_frag_nqueues(struct net *net) |
99 | { | 99 | { |
100 | return ip4_frags.nqueues; | 100 | return net->ipv4.frags.nqueues; |
101 | } | 101 | } |
102 | 102 | ||
103 | int ip_frag_mem(void) | 103 | int ip_frag_mem(void) |
@@ -675,6 +675,8 @@ static inline int ip4_frags_ctl_register(struct net *net) | |||
675 | 675 | ||
676 | static int ipv4_frags_init_net(struct net *net) | 676 | static int ipv4_frags_init_net(struct net *net) |
677 | { | 677 | { |
678 | inet_frags_init_net(&net->ipv4.frags); | ||
679 | |||
678 | return ip4_frags_ctl_register(net); | 680 | return ip4_frags_ctl_register(net); |
679 | } | 681 | } |
680 | 682 | ||