On Fri, Aug 19, 2022 at 11:51:11AM +0200, netdev@xxxxxxxxxxxxxxxxxxxx wrote:On 2022-08-14 16:55, Ido Schimmel wrote:
> On Fri, Aug 12, 2022 at 02:29:48PM +0200, netdev@xxxxxxxxxxxxxxxxxxxx
> wrote:
> > On 2022-08-11 13:28, Ido Schimmel wrote:
> >
> > > > > I'm talking about roaming, not forwarding. Let's say you have a locked
> > > > > entry with MAC X pointing to port Y. Now you get a packet with SMAC X
> > > > > from port Z which is unlocked. Will the FDB entry roam to port Z? I
> > > > > think it should, but at least in current implementation it seems that
> > > > > the "locked" flag will not be reset and having locked entries pointing
> > > > > to an unlocked port looks like a bug.
I have made the locked entries sticky in the bridge, so that they don't move
to other ports.
Please make sure that this design choice is explained in the commit
message. To be clear, it cannot be "this is how device X happens to
work".
I have now created the flag to enable Mac-Auth/MAB with iproute2:
bridge link set dev DEV macauth on|off
You have 'macauth' here, but 'mab' in the output below. They need to
match. I prefer the latter unless you have a good reason to use
'macauth'.
with the example output from 'bridge -d link show dev DEV' when macauth is
enabled:
1: ethX: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master br0 state
forwarding priority 32 cost 19
hairpin off guard off root_block off fastleave off learning on flood off
mcast_flood on bcast_flood on mcast_router 1 mcast_to_unicast off
neigh_suppress off vlan_tunnel off isolated off locked mab on
The flag itself in the code is called BR_PORT_MACAUTH.
>
> Fine by me, but I'm not sure everyone agrees.