diff options
author | Victor Nogueira <victor@mojatatu.com> | 2023-12-16 23:44:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-12-20 14:50:13 +0300 |
commit | fb2780721ca5e9f78bbe4544b819b929a982df9c (patch) | |
tree | fa410ccf9967d29a24610ce43b38a50f84e2f3de /include/net/pkt_sched.h | |
parent | 18764b883e157e28126b54e7d4ba9dd487d5bf54 (diff) | |
download | linux-fb2780721ca5e9f78bbe4544b819b929a982df9c.tar.xz |
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 'include/net/pkt_sched.h')
-rw-r--r-- | include/net/pkt_sched.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h index 9fa1d0794dfa..9b559aa5c079 100644 --- a/include/net/pkt_sched.h +++ b/include/net/pkt_sched.h @@ -277,12 +277,13 @@ static inline void skb_txtime_consumed(struct sk_buff *skb) struct tc_skb_cb { struct qdisc_skb_cb qdisc_cb; + u32 drop_reason; + u16 zone; /* Only valid if post_ct = true */ u16 mru; u8 post_ct:1; u8 post_ct_snat:1; u8 post_ct_dnat:1; - u16 zone; /* Only valid if post_ct = true */ }; static inline struct tc_skb_cb *tc_skb_cb(const struct sk_buff *skb) |