Skip to contentSkip to conversation

dst: don't inline dst_ifdown

PATCH Applied Stephen Hemminger 2 participants 2 messages Apr 12, 2010 – Apr 13, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dst: don't inline dst_ifdown

The function dst_ifdown is called only two places but in a non- performance critical code path, there is no reason to inline it.

net/core/dst.c +2 -2
@@ -285,8 +285,8 @@ EXPORT_SYMBOL(dst_release);
  *
  * Commented and originally written by Alexey.
  */
-static inline void dst_ifdown(struct dst_entry *dst, struct net_device *dev,
-			      int unregister)
+static void dst_ifdown(struct dst_entry *dst, struct net_device *dev,
+		       int unregister)
 {
 	if (dst->ops->ifdown)
 		dst->ops->ifdown(dst, dev, unregister);