diff options
| author | Victor Nogueira <[email protected]> | 2023-12-16 20:44:34 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-12-20 11:50:13 +0000 |
| commit | fb2780721ca5e9f78bbe4544b819b929a982df9c (patch) | |
| tree | fa410ccf9967d29a24610ce43b38a50f84e2f3de /net/sched/act_api.c | |
| parent | r8169: add support for LED's on RTL8168/RTL8101 (diff) | |
| download | kernel-fb2780721ca5e9f78bbe4544b819b929a982df9c.tar.gz kernel-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 <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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); |
