ipv4: remove ip_rt_dump from route.c
Subsystems (3)
PATCH 1/1 ipv4: remove ip_rt_dump from route.c
From: Li RongQing <[email protected]>
ip_rt_dump do nothing after IPv4 route caches removal, so we can remove it.
--- include/net/route.h | 1 - net/ipv4/fib_frontend.c | 2 +- net/ipv4/route.c | 5 ----- 3 files changed, 1 insertion(+), 7 deletions(-)
include/net/route.h +0 -1
@@ -191,7 +191,6 @@ unsigned int inet_dev_addr_type(struct net *net, const struct net_device *dev,void ip_rt_multicast_event (struct in_device *);int ip_rt_ioctl (struct net *,unsigned int cmd,void __user *arg);void ip_rt_get_source (u8 *src,struct sk_buff *skb,struct rtable *rt); -int ip_rt_dump (struct sk_buff *skb,struct netlink_callback *cb);struct in_ifaddr ;void fib_add_ifaddr (struct in_ifaddr *);
net/ipv4/fib_frontend.c +1 -1
@@ -659,7 +659,7 @@ static int inet_dump_fib(struct sk_buff *skb, struct netlink_callback *cb)if (nlmsg_len (cb->nlh) >=sizeof (struct rtmsg ) && ((struct rtmsg *)nlmsg_data (cb->nlh))->rtm_flags &RTM_F_CLONED ) -return ip_rt_dump (skb, cb); +return skb->len; s_h = cb->args[0 ]; s_e = cb->args[1 ];
net/ipv4/route.c +0 -5
@@ -2474,11 +2474,6 @@ errout_free: goto errout; } -int ip_rt_dump (struct sk_buff *skb,struct netlink_callback *cb) -{ -return skb->len; -} -void ip_rt_multicast_event (struct in_device *in_dev) {rt_cache_flush (dev_net (in_dev->dev));
Signature · 1 line
1.7.10.4
From: [email protected]
Date: Fri, 21 Mar 2014 11:33:10 +0800
Quoted 5 lines
From: Li RongQing <[email protected]>
ip_rt_dumpdo nothing after IPv4 route caches removal, so we can remove it.Signed-off-by Li RongQing <[email protected]>
Applied, thanks.
Quoted 10 lines · David Miller
From: [email protected]
Date: Fri, 21 Mar 2014 11:33:10 +0800Quoted 5 lines
From: Li RongQing <[email protected]>
ip_rt_dumpdo nothing after IPv4 route caches removal, so we can remove it.Signed-off-by Li RongQing <[email protected]>Applied, thanks.
Seems this patch was lost, I did not see it in net-next
-Roy
David Miller
maintainerFrom: Li RongQing <[email protected]>
Date: Mon, 24 Mar 2014 13:22:50 +0800
Quoted 6 lines · David Miller
Quoted 5 lines
From: [email protected]
Date: Fri, 21 Mar 2014 11:33:10 +0800Quoted 2 lines
From: Li RongQing <[email protected]>
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
ip_rt_dumpdo nothing after IPv4 route caches removal, so we can remove it.Signed-off-by Li RongQing <[email protected]>Applied, thanks.
Seems this patch was lost, I did not see it in net-next
I forgot to push it out Friday before leaving the office, it'll be in the tree momentarily.