| Submitter | Jiri Pirko |
|---|---|
| Date | Feb. 9, 2013, 4:45 p.m. |
| Message ID | <1360428312-1277-12-git-send-email-jiri@resnulli.us> |
| Download | mbox | patch |
| Permalink | /patch/219410/ |
| State | Changes Requested |
| Delegated to: | David Miller |
| Headers | show |
Comments
Patch
diff --git a/net/sched/act_police.c b/net/sched/act_police.c index 3821508..e6f480b 100644 --- a/net/sched/act_police.c +++ b/net/sched/act_police.c @@ -322,7 +322,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(-)