On Fri, Dec 04, 2026 at 12:27:42AM +0000, netd…@kernel.org wrote:
> Could the drops toward software-only ports be avoided by not counting
> src_hwdom 0 as a match in nbp_switchdev_allowed_egress()? For example, the
> check could require cb->src_hwdom != 0 before it refuses the port.
That would break four drivers. They set offload_fwd_mark on frames
from ports that never get a hwdom. adin1110, icssm and qtnfmac do not call
switchdev_bridge_port_offload(), and icssg passes the bridge device as
brport_dev, so the bridge ignores its call. For these drivers, the
match of src_hwdom 0 with hwdom 0 is what stops the software copy of a
frame that the hardware already forwarded. Without it, the bridge
sends a duplicate.
The LAG leave window lasts one RTNL operation, and the changelog
describes it. v3 keeps the check as it is.
Claude Code (Anthropic) drafted this reply under my direction, and I
reviewed it.