net: sched: Make tc-related drop reason more flexible for remaining qdiscs
authorVictor Nogueira <victor@mojatatu.com>
Sat, 16 Dec 2023 20:44:35 +0000 (17:44 -0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2023 11:50:13 +0000 (11:50 +0000)
commitb6a3c6066afc2cb7b92f45c67ab0b12ded81cb11
tree6dd00a5baf30739183dd6e99509197cec21ca111
parentfb2780721ca5e9f78bbe4544b819b929a982df9c
net: sched: Make tc-related drop reason more flexible for remaining qdiscs

Incrementing on Daniel's patch[1], make tc-related drop reason more
flexible for remaining qdiscs - that is, all qdiscs aside from clsact.
In essence, the drop reason will be set by cls_api and act_api in case
any error occurred in the data path. With that, we can give the user more
detailed information so that they can distinguish between a policy drop
or an error drop.

[1] https://lore.kernel.org/all/20231009092655.22025-1-daniel@iogearbox.net

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>
include/net/pkt_cls.h
include/net/pkt_sched.h
include/net/sch_generic.h
net/core/dev.c