Re: [PATCH net v7 2/4] net: hsr: preserve submission order without a forwarding lock
From: Sebastian Andrzej Siewior
Date: Fri Oct 23 2026 - 17:48:53 EST
On 2026-10-23 23:19:16 [+0200], Xin Xie wrote:
> On 14/10/2026 17:18, Sebastian Andrzej Siewior wrote:
> > Okay. In that case, could you please teach HSR to reject bridge ports at
> > the very least?
> >
> > Given that HSR is a ring and PRP faces two networks, I don't think a
> > bridge setup would make sense here. So rejecting this should be any easy
> > fix.
>
> Yes. The same chain also exists with a bond or team device as the port,
> and with a macvlan or ipvlan whose lower device is an HSR master. So I
> will make the check "a port must not have lower devices", for slave A/B
> and for the interlink. A physical NIC or a veth passes; bridge, bond,
> team, macvlan and ipvlan are refused. The only real setup this excludes
> is a bridge used directly as the interlink; a veth into that bridge
> still works.
Thanks. Sounds good. veth is needed for testing ;)
> > Or (c) tell HSR to reject bridge ports. This should avoid the case and
> > the problem.
>
> Nobody else has commented in the meantime, so I will go with your
> suggestion. In v8 the lock stays as it is today, and patch 2 becomes
> the port check with the syzbot Reported-by. Narrowing the lock can be a
> separate change later, outside this fix series. Patch 3 then segments
> before taking seqnr_lock and numbers each segment under it.
I will look at it once it gets there.
Sebastian