diff options
author | Victor Nogueira <victor@mojatatu.com> | 2023-12-16 21:44:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-12-20 12:50:13 +0100 |
commit | fb2780721ca5e9f78bbe4544b819b929a982df9c (patch) | |
tree | fa410ccf9967d29a24610ce43b38a50f84e2f3de /net/sched/act_api.c | |
parent | r8169: add support for LED's on RTL8168/RTL8101 (diff) | |
download | linux-fb2780721ca5e9f78bbe4544b819b929a982df9c.tar.xz linux-fb2780721ca5e9f78bbe4544b819b929a982df9c.zip |
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>
Diffstat (limited to 'net/sched/act_api.c')
-rw-r--r-- | net/sched/act_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 3a7770eff52d..db500aa9f841 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -1119,7 +1119,7 @@ repeat: } } else if (TC_ACT_EXT_CMP(ret, TC_ACT_GOTO_CHAIN)) { if (unlikely(!rcu_access_pointer(a->goto_chain))) { - tcf_set_drop_reason(res, SKB_DROP_REASON_TC_ERROR); + tcf_set_drop_reason(skb, SKB_DROP_REASON_TC_ERROR); return TC_ACT_SHOT; } tcf_action_goto_chain_exec(a, res); |