diff options
author | David S. Miller <davem@davemloft.net> | 2008-08-05 08:04:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-05 08:04:08 +0200 |
commit | cc6533e98a7f3cb7fce9d740da49195c7aa523a4 (patch) | |
tree | 23b1a33c9c6894f799808e7dcbcf3afeb1d71192 /include/net/dst.h | |
parent | net_sched: Add qdisc __NET_XMIT_BYPASS flag (diff) | |
download | linux-cc6533e98a7f3cb7fce9d740da49195c7aa523a4.tar.xz linux-cc6533e98a7f3cb7fce9d740da49195c7aa523a4.zip |
net: Kill plain NET_XMIT_BYPASS.
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>
Diffstat (limited to '')
-rw-r--r-- | include/net/dst.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/net/dst.h b/include/net/dst.h index c5c318a628f8..8a8b71e5f3f1 100644 --- a/include/net/dst.h +++ b/include/net/dst.h @@ -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) |