Message ID | 1360349981-27801-12-git-send-email-jiri@resnulli.us |
---|---|
State | Changes Requested, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/sched/act_police.c b/net/sched/act_police.c index 8723183..2a55cea 100644 --- a/net/sched/act_police.c +++ b/net/sched/act_police.c @@ -311,7 +311,7 @@ static int tcf_act_police(struct sk_buff *skb, const struct tc_action *a, return police->tcf_action; } - if (qdisc_pkt_len(skb) <= police->tcfp_mtu) { + if (qdisc_pkt_len(skb) <= police->tcfp_mtu || skb_is_gso(skb)) { if (!police->rate_present) { spin_unlock(&police->tcf_lock); return police->tcfp_result;
This check made bigger packets incorrectly dropped. Remove this limitation for gso skbs. Signed-off-by: Jiri Pirko <jiri@resnulli.us> --- net/sched/act_police.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)