mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
c27f339af9
commit
cc6533e98a
2 changed files with 1 additions and 14 deletions
|
@ -61,9 +61,6 @@ struct wireless_dev;
|
||||||
#define NET_XMIT_DROP 1 /* skb dropped */
|
#define NET_XMIT_DROP 1 /* skb dropped */
|
||||||
#define NET_XMIT_CN 2 /* congestion notification */
|
#define NET_XMIT_CN 2 /* congestion notification */
|
||||||
#define NET_XMIT_POLICED 3 /* skb is shot by police */
|
#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 */
|
#define NET_XMIT_MASK 0xFFFF /* qdisc flags in net/sch_generic.h */
|
||||||
|
|
||||||
/* Backlog congestion levels */
|
/* Backlog congestion levels */
|
||||||
|
|
|
@ -252,17 +252,7 @@ static inline int dst_output(struct sk_buff *skb)
|
||||||
/* Input packet from network to transport. */
|
/* Input packet from network to transport. */
|
||||||
static inline int dst_input(struct sk_buff *skb)
|
static inline int dst_input(struct sk_buff *skb)
|
||||||
{
|
{
|
||||||
int err;
|
return skb->dst->input(skb);
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct dst_entry *dst_check(struct dst_entry *dst, u32 cookie)
|
static inline struct dst_entry *dst_check(struct dst_entry *dst, u32 cookie)
|
||||||
|
|
Loading…
Reference in a new issue