net: sched: Move drop_reason to struct tc_skb_cb
authorVictor Nogueira <victor@mojatatu.com>
Sat, 16 Dec 2023 20:44:34 +0000 (17:44 -0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2023 11:50:13 +0000 (11:50 +0000)
commitfb2780721ca5e9f78bbe4544b819b929a982df9c
treefa410ccf9967d29a24610ce43b38a50f84e2f3de
parent18764b883e157e28126b54e7d4ba9dd487d5bf54
net: sched: Move drop_reason to struct tc_skb_cb

Move drop_reason from struct tcf_result to skb cb - more specifically to
struct tc_skb_cb. With that, we'll be able to also set the drop reason for
the remaining qdiscs (aside from clsact) that do not have access to
tcf_result when time comes to set the skb drop reason.

Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h
include/net/pkt_sched.h
include/net/sch_generic.h
net/core/dev.c
net/sched/act_api.c
net/sched/cls_api.c