mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
Revert "sch_cake: Return __NET_XMIT_STOLEN when consuming enqueued skb"
This reverts commit90fabae8a2. Patch was applied hastily, revert and let the v2 be reviewed. Fixes:90fabae8a2("sch_cake: Return __NET_XMIT_STOLEN when consuming enqueued skb") Link: https://lore.kernel.org/all/87wnao2ha3.fsf@toke.dk/ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -1713,7 +1713,6 @@ static s32 cake_enqueue(struct sk_buff *skb, struct Qdisc *sch,
|
||||
}
|
||||
idx--;
|
||||
flow = &b->flows[idx];
|
||||
ret = NET_XMIT_SUCCESS;
|
||||
|
||||
/* ensure shaper state isn't stale */
|
||||
if (!b->tin_backlog) {
|
||||
@@ -1772,7 +1771,6 @@ static s32 cake_enqueue(struct sk_buff *skb, struct Qdisc *sch,
|
||||
|
||||
qdisc_tree_reduce_backlog(sch, 1-numsegs, len-slen);
|
||||
consume_skb(skb);
|
||||
ret |= __NET_XMIT_STOLEN;
|
||||
} else {
|
||||
/* not splitting */
|
||||
cobalt_set_enqueue_time(skb, now);
|
||||
@@ -1906,7 +1904,7 @@ static s32 cake_enqueue(struct sk_buff *skb, struct Qdisc *sch,
|
||||
}
|
||||
b->drop_overlimit += dropped;
|
||||
}
|
||||
return ret;
|
||||
return NET_XMIT_SUCCESS;
|
||||
}
|
||||
|
||||
static struct sk_buff *cake_dequeue_one(struct Qdisc *sch)
|
||||
|
||||
Reference in New Issue
Block a user