ipv4: remove ipv4_ifdown_dst from route.c
authorLi RongQing <roy.qing.li@gmail.com>
Mon, 24 Mar 2014 03:03:10 +0000 (11:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Mar 2014 04:18:44 +0000 (00:18 -0400)
ipv4_ifdown_dst does 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>
net/ipv4/route.c

index 11e4384daaf9b3f12453338281ee2c750a35c06f..57527ee1867f404843fdd9c77d072f28000f5d27 100644 (file)
@@ -139,11 +139,6 @@ static void                 ip_do_redirect(struct dst_entry *dst, struct sock *sk,
                                        struct sk_buff *skb);
 static void            ipv4_dst_destroy(struct dst_entry *dst);
 
-static void ipv4_dst_ifdown(struct dst_entry *dst, struct net_device *dev,
-                           int how)
-{
-}
-
 static u32 *ipv4_cow_metrics(struct dst_entry *dst, unsigned long old)
 {
        WARN_ON(1);
@@ -162,7 +157,6 @@ static struct dst_ops ipv4_dst_ops = {
        .mtu =                  ipv4_mtu,
        .cow_metrics =          ipv4_cow_metrics,
        .destroy =              ipv4_dst_destroy,
-       .ifdown =               ipv4_dst_ifdown,
        .negative_advice =      ipv4_negative_advice,
        .link_failure =         ipv4_link_failure,
        .update_pmtu =          ip_rt_update_pmtu,