]> Pileus Git - ~andy/linux/blobdiff - include/net/dst.h
[IPv6] route: Simplify ip6_ins_rt()
[~andy/linux] / include / net / dst.h
index bee8b84d329db3522f0e9fc7f3991e4579f7963c..36d54fc248b001cc1bbd9915039c005931fd14d1 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef _NET_DST_H
 #define _NET_DST_H
 
-#include <linux/config.h>
 #include <linux/netdevice.h>
 #include <linux/rtnetlink.h>
 #include <linux/rcupdate.h>
@@ -225,16 +224,7 @@ static inline void dst_set_expires(struct dst_entry *dst, int timeout)
 /* Output packet to network from transport.  */
 static inline int dst_output(struct sk_buff *skb)
 {
-       int err;
-
-       for (;;) {
-               err = skb->dst->output(skb);
-
-               if (likely(err == 0))
-                       return err;
-               if (unlikely(err != NET_XMIT_BYPASS))
-                       return err;
-       }
+       return skb->dst->output(skb);
 }
 
 /* Input packet from network to transport.  */