diff options
author | Li RongQing <roy.qing.li@gmail.com> | 2014-03-20 23:33:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-24 12:45:01 -0400 |
commit | 0b8c7f6f2a26ed2dee24881299fc69f554596dbb (patch) | |
tree | 4a3d036c5a9241dee7c438dd16d48c58a5076485 /net | |
parent | dffe278f0a3755bc00b3dd48c45fa6992458520d (diff) |
ipv4: remove ip_rt_dump from route.c
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/fib_frontend.c | 2 | ||||
-rw-r--r-- | net/ipv4/route.c | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index c7539e22868b..1a629f870274 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) | |||
659 | 659 | ||
660 | if (nlmsg_len(cb->nlh) >= sizeof(struct rtmsg) && | 660 | if (nlmsg_len(cb->nlh) >= sizeof(struct rtmsg) && |
661 | ((struct rtmsg *) nlmsg_data(cb->nlh))->rtm_flags & RTM_F_CLONED) | 661 | ((struct rtmsg *) nlmsg_data(cb->nlh))->rtm_flags & RTM_F_CLONED) |
662 | return ip_rt_dump(skb, cb); | 662 | return skb->len; |
663 | 663 | ||
664 | s_h = cb->args[0]; | 664 | s_h = cb->args[0]; |
665 | s_e = cb->args[1]; | 665 | s_e = cb->args[1]; |
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 57527ee1867f..1be9e990514d 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -2468,11 +2468,6 @@ errout_free: | |||
2468 | goto errout; | 2468 | goto errout; |
2469 | } | 2469 | } |
2470 | 2470 | ||
2471 | int ip_rt_dump(struct sk_buff *skb, struct netlink_callback *cb) | ||
2472 | { | ||
2473 | return skb->len; | ||
2474 | } | ||
2475 | |||
2476 | void ip_rt_multicast_event(struct in_device *in_dev) | 2471 | void ip_rt_multicast_event(struct in_device *in_dev) |
2477 | { | 2472 | { |
2478 | rt_cache_flush(dev_net(in_dev->dev)); | 2473 | rt_cache_flush(dev_net(in_dev->dev)); |