net: sched: avoid usage of tp->q in tcf_classify
authorJiri Pirko <jiri@mellanox.com>
Wed, 17 Jan 2018 10:46:47 +0000 (11:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jan 2018 19:53:56 +0000 (14:53 -0500)
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>
net/sched/cls_api.c

index ee319b1598b5eca6aab15b234967185a8d18a9fb..700595abc6411ea6823113df61e26995457af20f 100644 (file)
@@ -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;
        }