]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
net: Kill plain NET_XMIT_BYPASS.
authorDavid S. Miller <davem@davemloft.net>
Tue, 5 Aug 2008 06:04:08 +0000 (23:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Aug 2008 06:04:08 +0000 (23:04 -0700)
dst_input() was doing something completely absurd, looping
on skb->dst->input() if NET_XMIT_BYPASS was seen, but these
functions never return such an error.

And as a result plain ole' NET_XMIT_BYPASS has no more
references and can be completely killed off.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/net/dst.h

index abbf5d52ec86f1194e6a4f8c3188f3515284f4f5..488c56e649b585592856883043edf4b9dacc8163 100644 (file)
@@ -61,9 +61,6 @@ struct wireless_dev;
 #define NET_XMIT_DROP          1       /* skb dropped                  */
 #define NET_XMIT_CN            2       /* congestion notification      */
 #define NET_XMIT_POLICED       3       /* skb is shot by police        */
-#define NET_XMIT_BYPASS                4       /* packet does not leave via dequeue;
-                                          (TC use only - dev_queue_xmit
-                                          returns this as NET_XMIT_SUCCESS) */
 #define NET_XMIT_MASK          0xFFFF  /* qdisc flags in net/sch_generic.h */
 
 /* Backlog congestion levels */
index c5c318a628f8b0e218c793783c6245aec374d725..8a8b71e5f3f13578a2004fe84ee6e17dc7caa9a4 100644 (file)
@@ -252,17 +252,7 @@ static inline int dst_output(struct sk_buff *skb)
 /* Input packet from network to transport.  */
 static inline int dst_input(struct sk_buff *skb)
 {
-       int err;
-
-       for (;;) {
-               err = skb->dst->input(skb);
-
-               if (likely(err == 0))
-                       return err;
-               /* Oh, Jamal... Seems, I will not forgive you this mess. :-) */
-               if (unlikely(err != NET_XMIT_BYPASS))
-                       return err;
-       }
+       return skb->dst->input(skb);
 }
 
 static inline struct dst_entry *dst_check(struct dst_entry *dst, u32 cookie)