mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
dffe278f0a
commit
0b8c7f6f2a
3 changed files with 1 additions and 7 deletions
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue