This is required so that the inet_peer_* sysctls can be namespacified Signed-off-by: Nikolay Borisov <ker...@kyup.com> --- include/net/inetpeer.h | 1 + net/ipv4/route.c | 1 + 2 files changed, 2 insertions(+)
diff --git a/include/net/inetpeer.h b/include/net/inetpeer.h index 235c7811a86a..287bb54cda58 100644 --- a/include/net/inetpeer.h +++ b/include/net/inetpeer.h @@ -67,6 +67,7 @@ struct inet_peer_base { struct inet_peer __rcu *root; seqlock_t lock; int total; + struct net *net; }; void inet_peer_base_init(struct inet_peer_base *); diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 85f184e429c6..4bb45e52411c 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -2775,6 +2775,7 @@ static int __net_init ipv4_inetpeer_init(struct net *net) return -ENOMEM; inet_peer_base_init(bp); net->ipv4.peers = bp; + bp->net = net; return 0; } -- 2.5.0