extern void inet_putpeer(struct inet_peer *p);
extern bool inet_peer_xrlim_allow(struct inet_peer *peer, int timeout);
-extern void __inetpeer_invalidate_tree(struct inet_peer_base *);
-extern void inetpeer_invalidate_tree(struct net *net, int family);
+extern void inetpeer_invalidate_tree(struct inet_peer_base *);
/*
* temporary check to make sure we dont access rid, ip_id_count, tcp_ts,
schedule_delayed_work(&gc_work, gc_delay);
}
-void __inetpeer_invalidate_tree(struct inet_peer_base *base)
+void inetpeer_invalidate_tree(struct inet_peer_base *base)
{
struct inet_peer *old, *new, *prev;
out:
write_sequnlock_bh(&base->lock);
}
-EXPORT_SYMBOL(__inetpeer_invalidate_tree);
-
-void inetpeer_invalidate_tree(struct net *net, int family)
-{
- struct inet_peer_base *base = family_to_base(net, family);
-
- __inetpeer_invalidate_tree(base);
-}
EXPORT_SYMBOL(inetpeer_invalidate_tree);
get_random_bytes(&shuffle, sizeof(shuffle));
atomic_add(shuffle + 1U, &net->ipv4.rt_genid);
- inetpeer_invalidate_tree(net, AF_INET);
+ inetpeer_invalidate_tree(net->ipv4.peers);
}
/*
struct inet_peer_base *bp = net->ipv4.peers;
net->ipv4.peers = NULL;
- __inetpeer_invalidate_tree(bp);
+ inetpeer_invalidate_tree(bp);
kfree(bp);
}
struct inet_peer_base *bp = net->ipv6.peers;
net->ipv6.peers = NULL;
- __inetpeer_invalidate_tree(bp);
+ inetpeer_invalidate_tree(bp);
kfree(bp);
}