Patchwork [net-next,v3,07/11] tbf: ignore max_size check for gso skbs

login
register
mail settings
Submitter Jiri Pirko
Date Feb. 9, 2013, 4:45 p.m.
Message ID <1360428312-1277-8-git-send-email-jiri@resnulli.us>
Download mbox | patch
Permalink /patch/219406/
State Changes Requested
Delegated to: David Miller
Headers show

Comments

Jiri Pirko - Feb. 9, 2013, 4:45 p.m.
This check made bigger packets incorrectly dropped. Remove this
limitation for gso skbs.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Eric Dumazet <edumazet@google.com>
---
 net/sched/sch_tbf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/net/sched/sch_tbf.c b/net/sched/sch_tbf.c
index e05710a..dc562a8 100644
--- a/net/sched/sch_tbf.c
+++ b/net/sched/sch_tbf.c
@@ -121,7 +121,7 @@  static int tbf_enqueue(struct sk_buff *skb, struct Qdisc *sch)
 	struct tbf_sched_data *q = qdisc_priv(sch);
 	int ret;
 
-	if (qdisc_pkt_len(skb) > q->max_size)
+	if (qdisc_pkt_len(skb) > q->max_size && !skb_is_gso(skb))
 		return qdisc_reshape_fail(skb, sch);
 
 	ret = qdisc_enqueue(skb, q->qdisc);