diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2023-10-09 11:26:55 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-10-16 19:07:37 +0200 |
commit | 39d08b91646d83e87f7cbcd846b3ef33b1a53b79 (patch) | |
tree | 348b1c78c183e5ea3fee011849e3ce1ca82a5a9d /include/net/inet_connection_sock.h | |
parent | net, sched: Make tc-related drop reason more flexible (diff) | |
download | linux-39d08b91646d83e87f7cbcd846b3ef33b1a53b79.tar.xz linux-39d08b91646d83e87f7cbcd846b3ef33b1a53b79.zip |
net, sched: Add tcf_set_drop_reason for {__,}tcf_classify
Add an initial user for the newly added tcf_set_drop_reason() helper to set the
drop reason for internal errors leading to TC_ACT_SHOT inside {__,}tcf_classify().
Right now this only adds a very basic SKB_DROP_REASON_TC_ERROR as a generic
fallback indicator to mark drop locations. Where needed, such locations can be
converted to more specific codes, for example, when hitting the reclassification
limit, etc.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Victor Nogueira <victor@mojatatu.com>
Link: https://lore.kernel.org/r/20231009092655.22025-2-daniel@iogearbox.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/inet_connection_sock.h')
0 files changed, 0 insertions, 0 deletions