Re: [PATCH net v10 2/4] net: hsr: refuse forwarding devices as HSR/PRP ports

From: Xin Xie

Date: Mon Nov 23 2026 - 16:52:03 EST


On 23/11/2026 14:47, Paolo Abeni wrote:
> What about explicitly detecting the AA deadlock maintaining a per cpu
> status?

Thank you for the suggestion. I will add this check in v11. It catches
a frame that comes back to the same HSR master, and the locking can
stay as it is.

Interlink input and the supervision frames also send to the ports
while seqnr_lock is held, so I will put the check there as well, not
only in hsr_dev_xmit().

A tc redirect back to the HSR device is enough to hit this, so it can
be triggered from user space. For that reason I plan to use a
rate-limited message instead of WARN_ON_ONCE(), like __dev_queue_xmit()
does for "Dead loop on virtual device". Please let me know if you see
it differently.

I also plan to keep the port type check from this patch.

--
Xin