dst: don't inline dst_ifdown
Subsystems (2)
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.
Signed-off-by Stephen Hemminger <[email protected]>
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);
From: Stephen Hemminger <[email protected]>
Date: Mon, 12 Apr 2010 10:38:05 -0700
Quoted 4 lines
The function
dst_ifdownis called only two places but in a non- performance critical code path, there is no reason to inline it.Signed-off-by Stephen Hemminger <[email protected]>
Applied.