net: bridge: add skb drop reasons to the most common drop points
authorRadu Rendec <rrendec@redhat.com>
Thu, 19 Dec 2024 16:36:06 +0000 (11:36 -0500)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Dec 2024 18:11:04 +0000 (10:11 -0800)
commit623e43c2f5023853cbf71d6a60898d448a06416a
tree7a92e0a708544d07e15817ec13a03defede116a6
parent46e0ccfb88f02ab2eb20a41d519d6e4c028652f2
net: bridge: add skb drop reasons to the most common drop points

The bridge input code may drop frames for various reasons and at various
points in the ingress handling logic. Currently kfree_skb() is used
everywhere, and therefore no drop reason is specified. Add drop reasons
to the most common drop points.

Drop reasons are not added exhaustively to the entire bridge code. The
intention is to incrementally add drop reasons to the rest of the bridge
code in follow up patches.

Signed-off-by: Radu Rendec <rrendec@redhat.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/20241219163606.717758-3-rrendec@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/dropreason-core.h
net/bridge/br_forward.c
net/bridge/br_input.c