OSDN Git Service

ipv4: remove ip_rt_dump from route.c
authorLi RongQing <roy.qing.li@gmail.com>
Fri, 21 Mar 2014 03:33:10 +0000 (11:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Mar 2014 16:45:01 +0000 (12:45 -0400)
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>
include/net/route.h
net/ipv4/fib_frontend.c
net/ipv4/route.c

index 9d1f423..b17cf28 100644 (file)
@@ -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 *);
index c7539e2..1a629f8 100644 (file)
@@ -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];
index 57527ee..1be9e99 100644 (file)
@@ -2468,11 +2468,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));