On Wed, Dec 02, 2026 at 01:38:28PM +0100, Daniel Machon wrote:
> This fix caught my attention as I am preparing a LAG series for
> sparx5/lan969x. The issue reproduces on lan969x and is gone with the
> fix.
Thanks for testing it on lan969x.
> Sashiko flagged a few issues. One of them is a new bug that lan966x can
> hit, but it would take real effort to trigger. Still, it looks like a
> cheap fix.
Agreed. v1 makes nbp_switchdev_hwdom_set() skip a port without a
hwdom. With that skip, a port that is already a bridge port can get
-EBUSY, for example a LAG that is a bridge port when its first lan966x
port joins. nbp_switchdev_add() then keeps offload_count at 1, and the
port never gets a hwdom. It needs all hwdoms busy.
v2 adds a patch before this one that sets offload_count only after the
hwdom is set. It also reads the hwdom once with READ_ONCE() in
nbp_switchdev_frame_mark() and nbp_switchdev_allowed_egress(), and the
commit message describes the receive side of the LAG leave window. I
will Cc you on v2. If you can run it on lan969x, a Tested-by would
help.
pw-bot: cr