ipv4: Delete routing cache.
Subsystems (3)
David Miller
maintainerRFC PATCH 1/3 ipv4: Delete routing cache.
Signed-off-by David S. Miller <[email protected]>
--- include/net/route.h | 1 - net/ipv4/fib_frontend.c | 5 - net/ipv4/route.c | 903 ++--------------------------------------------- 3 files changed, 24 insertions(+), 885 deletions(-)
include/net/route.h +0 -1
@@ -117,7 +117,6 @@ extern int ip_rt_init(void);extern void ip_rt_redirect (__be32 old_gw,__be32 dst,__be32 new_gw,__be32 src,struct net_device *dev);extern void rt_cache_flush (struct net *net,int how); -extern void rt_cache_flush_batch (struct net *net);extern int __ip_route_output_key (struct net *,struct rtable **,const struct flowi *flp);extern int ip_route_output_key (struct net *,struct rtable **,struct flowi *flp);extern int ip_route_output_flow (struct net *,struct rtable **rp,struct flowi *flp,struct sock *sk,int flags);
net/ipv4/fib_frontend.c +0 -5
@@ -978,11 +978,6 @@ static int fib_netdev_event(struct notifier_block *this, unsigned long event, vort_cache_flush (dev_net (dev),0 );break ;case NETDEV_UNREGISTER_BATCH : -/* The batch unregister is only called on the first -* device in the list of devices being unregistered. -* Therefore we should not pass dev_net(dev) in here. -*/ -rt_cache_flush_batch (NULL );break ; }return NOTIFY_DONE ;
net/ipv4/route.c +24 -879
1,081 lines not on this page · raw message
Signature · 1 line
1.7.4.1