diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/sch_api.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 9839b26674f4..fe35c1f338c2 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c | |||
@@ -1637,9 +1637,12 @@ reclassify: | |||
1637 | tp = otp; | 1637 | tp = otp; |
1638 | 1638 | ||
1639 | if (verd++ >= MAX_REC_LOOP) { | 1639 | if (verd++ >= MAX_REC_LOOP) { |
1640 | printk("rule prio %u protocol %02x reclassify loop, " | 1640 | if (net_ratelimit()) |
1641 | "packet dropped\n", | 1641 | printk(KERN_NOTICE |
1642 | tp->prio&0xffff, ntohs(tp->protocol)); | 1642 | "%s: packet reclassify loop" |
1643 | " rule prio %u protocol %02x\n", | ||
1644 | tp->q->ops->id, | ||
1645 | tp->prio & 0xffff, ntohs(tp->protocol)); | ||
1643 | return TC_ACT_SHOT; | 1646 | return TC_ACT_SHOT; |
1644 | } | 1647 | } |
1645 | skb->tc_verd = SET_TC_VERD(skb->tc_verd, verd); | 1648 | skb->tc_verd = SET_TC_VERD(skb->tc_verd, verd); |