Patchwork [net-next,v4,11/11] act_police: remove <=mtu check for gso skbs

login
register
mail settings
Submitter Jiri Pirko
Date Feb. 10, 2013, 10:52 a.m.
Message ID <1360493539-14868-12-git-send-email-jiri@resnulli.us>
Download mbox | patch
Permalink /patch/219486/
State Changes Requested
Delegated to: David Miller
Headers show

Comments

Jiri Pirko - Feb. 10, 2013, 10:52 a.m.
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(-)

Patch

diff --git a/net/sched/act_police.c b/net/sched/act_police.c
index 71bf4f5..e11eca9 100644
--- a/net/sched/act_police.c
+++ b/net/sched/act_police.c
@@ -325,7 +325,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;