net: sched: Add initial TC error skb drop reasons
authorVictor Nogueira <victor@mojatatu.com>
Sat, 16 Dec 2023 20:44:36 +0000 (17:44 -0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2023 11:50:13 +0000 (11:50 +0000)
commit4cf24dc8934074725042c0bd10b91f4d4b5269bb
treef5058fd8f4481eb40272b1405fa2f0530fda3ec3
parentb6a3c6066afc2cb7b92f45c67ab0b12ded81cb11
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>
include/net/dropreason-core.h
net/sched/act_api.c
net/sched/cls_api.c