diff options
author | Victor Nogueira <victor@mojatatu.com> | 2023-12-16 17:44:36 -0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-12-20 11:50:13 +0000 |
commit | 4cf24dc8934074725042c0bd10b91f4d4b5269bb (patch) | |
tree | f5058fd8f4481eb40272b1405fa2f0530fda3ec3 /net/sched/act_api.c | |
parent | b6a3c6066afc2cb7b92f45c67ab0b12ded81cb11 (diff) | |
download | lwn-4cf24dc8934074725042c0bd10b91f4d4b5269bb.tar.gz lwn-4cf24dc8934074725042c0bd10b91f4d4b5269bb.zip |
net: sched: Add initial TC error skb drop reasons
Continue expanding Daniel's patch by adding new skb drop reasons that
are idiosyncratic to TC.
More specifically:
- SKB_DROP_REASON_TC_COOKIE_ERROR: An error occurred whilst
processing a tc ext cookie.
- SKB_DROP_REASON_TC_CHAIN_NOTFOUND: tc chain lookup failed.
- SKB_DROP_REASON_TC_RECLASSIFY_LOOP: tc exceeded max reclassify loop
iterations
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index db500aa9f841..a44c097a880d 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -1119,7 +1119,8 @@ repeat: } } else if (TC_ACT_EXT_CMP(ret, TC_ACT_GOTO_CHAIN)) { if (unlikely(!rcu_access_pointer(a->goto_chain))) { - tcf_set_drop_reason(skb, SKB_DROP_REASON_TC_ERROR); + tcf_set_drop_reason(skb, + SKB_DROP_REASON_TC_CHAIN_NOTFOUND); return TC_ACT_SHOT; } tcf_action_goto_chain_exec(a, res); |