* [PATCH][net-next] ipv4: remove ip_rt_dump from route.c
@ 2014-03-21 3:33 roy.qing.li
2014-03-21 19:38 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: roy.qing.li @ 2014-03-21 3:33 UTC (permalink / raw)
To: netdev
From: Li RongQing <roy.qing.li@gmail.com>
ip_rt_dump do nothing after IPv4 route caches removal, so we can remove it.
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
---
include/net/route.h | 1 -
net/ipv4/fib_frontend.c | 2 +-
net/ipv4/route.c | 5 -----
3 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/include/net/route.h b/include/net/route.h
index 9d1f423..b17cf28 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -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 *);
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index c7539e2..1a629f8 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -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];
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 11e4384..a8f2612 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -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));
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH][net-next] ipv4: remove ip_rt_dump from route.c
2014-03-21 3:33 [PATCH][net-next] ipv4: remove ip_rt_dump from route.c roy.qing.li
@ 2014-03-21 19:38 ` David Miller
2014-03-24 5:22 ` Li RongQing
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2014-03-21 19:38 UTC (permalink / raw)
To: roy.qing.li; +Cc: netdev
From: roy.qing.li@gmail.com
Date: Fri, 21 Mar 2014 11:33:10 +0800
> From: Li RongQing <roy.qing.li@gmail.com>
>
> ip_rt_dump do nothing after IPv4 route caches removal, so we can remove it.
>
> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH][net-next] ipv4: remove ip_rt_dump from route.c
2014-03-21 19:38 ` David Miller
@ 2014-03-24 5:22 ` Li RongQing
2014-03-24 16:50 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Li RongQing @ 2014-03-24 5:22 UTC (permalink / raw)
To: David Miller; +Cc: netdev
On Sat, Mar 22, 2014 at 3:38 AM, David Miller <davem@davemloft.net> wrote:
> From: roy.qing.li@gmail.com
> Date: Fri, 21 Mar 2014 11:33:10 +0800
>
>> From: Li RongQing <roy.qing.li@gmail.com>
>>
>> ip_rt_dump do nothing after IPv4 route caches removal, so we can remove it.
>>
>> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
>
> Applied, thanks.
Seems this patch was lost, I did not see it in net-next
-Roy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH][net-next] ipv4: remove ip_rt_dump from route.c
2014-03-24 5:22 ` Li RongQing
@ 2014-03-24 16:50 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2014-03-24 16:50 UTC (permalink / raw)
To: roy.qing.li; +Cc: netdev
From: Li RongQing <roy.qing.li@gmail.com>
Date: Mon, 24 Mar 2014 13:22:50 +0800
> On Sat, Mar 22, 2014 at 3:38 AM, David Miller <davem@davemloft.net> wrote:
>> From: roy.qing.li@gmail.com
>> Date: Fri, 21 Mar 2014 11:33:10 +0800
>>
>>> From: Li RongQing <roy.qing.li@gmail.com>
>>>
>>> ip_rt_dump do nothing after IPv4 route caches removal, so we can remove it.
>>>
>>> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
>>
>> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-24 16:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-21 3:33 [PATCH][net-next] ipv4: remove ip_rt_dump from route.c roy.qing.li
2014-03-21 19:38 ` David Miller
2014-03-24 5:22 ` Li RongQing
2014-03-24 16:50 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).