Linux Kernels

net: Kill set_dst_metric_rtt().

This change ā€œnet: Kill set_dst_metric_rtt().ā€ (commit 94334d5) in Linux kernel is authored by David S. Miller <davem [at] davemloft.net> on Tue Jul 10 00:53:48 2012 -0700.

Description of "net: Kill set_dst_metric_rtt()."

The change ā€œnet: Kill set_dst_metric_rtt().ā€ introduces changes as follows.

net: Kill set_dst_metric_rtt().

No longer used.

Signed-off-by: David S. Miller <davem@davemloft.net>

Linux kernel releases containing commit 94334d5

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "net: Kill set_dst_metric_rtt()."

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

 include/net/dst.h | 6 ------
 1 file changed, 6 deletions(-)
 
diff --git a/include/net/dst.h b/include/net/dst.h
index b2634e446613..51610468c63d 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -209,12 +209,6 @@ static inline unsigned long dst_metric_rtt(const struct dst_entry *dst, int metr
 	return msecs_to_jiffies(dst_metric(dst, metric));
 }
 
-static inline void set_dst_metric_rtt(struct dst_entry *dst, int metric,
-				      unsigned long rtt)
-{
-	dst_metric_set(dst, metric, jiffies_to_msecs(rtt));
-}
-
 static inline u32
 dst_allfrag(const struct dst_entry *dst)
 {

The commit for this change in Linux stable tree is 94334d5 (patch).

Last modified: 2020/01/11 10:03