summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2018-01-17 11:46:47 +0100
committerDavid S. Miller <davem@davemloft.net>2018-01-17 14:53:56 -0500
commit9d3aaff3d8523264ff7082a90759cb8a340200be (patch)
treeeeb82fac2f6c8c9aebfa667d87fd350d066a9af8
parent4861738775d70e0165d04fe014f32b41bcb5414a (diff)
downloadlinux-9d3aaff3d8523264ff7082a90759cb8a340200be.tar.gz
linux-9d3aaff3d8523264ff7082a90759cb8a340200be.tar.bz2
linux-9d3aaff3d8523264ff7082a90759cb8a340200be.zip
net: sched: avoid usage of tp->q in tcf_classify
Use block index in the messages instead. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Acked-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/sched/cls_api.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index ee319b1598b5..700595abc641 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -672,8 +672,9 @@ reclassify:
#ifdef CONFIG_NET_CLS_ACT
reset:
if (unlikely(limit++ >= max_reclassify_loop)) {
- net_notice_ratelimited("%s: reclassify loop, rule prio %u, protocol %02x\n",
- tp->q->ops->id, tp->prio & 0xffff,
+ net_notice_ratelimited("%u: reclassify loop, rule prio %u, protocol %02x\n",
+ tp->chain->block->index,
+ tp->prio & 0xffff,
ntohs(tp->protocol));
return TC_ACT_SHOT;
}