ipv4: remove ipv4_ifdown_dst from route.c

This change “ipv4: remove ipv4_ifdown_dst from route.c” (commit 4a4eb21) in Linux kernel is authored by Li RongQing <roy.qing.li [at] gmail.com> on Mon Mar 24 11:03:10 2014 +0800.

Description of "ipv4: remove ipv4_ifdown_dst from route.c"

The change “ipv4: remove ipv4_ifdown_dst from route.c” introduces changes as follows.

ipv4: remove ipv4_ifdown_dst from route.c

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>

Linux kernel releases containing commit 4a4eb21

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "ipv4: remove ipv4_ifdown_dst from route.c"

There are 6 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 net/ipv4/route.c | 6 ------
 1 file changed, 6 deletions(-)
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 11e4384daaf9..57527ee1867f 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -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)
@@ -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,

The commit for this change in Linux stable tree is 4a4eb21 (patch).

Last modified: 2020/02/10