Re: [PATCH net-next v3 08/12] net: dsa: rzn1-a5psw: add FDB support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 05, 2022 at 03:44:31PM +0200, Clément Léger wrote:
> Indeed, I'll simply remove these error message. Should I still return
> an error value however ? Seems like I should not to avoid triggering
> any error that might confuse the user.

The error code will not be propagated to the bridge driver anyway, but
will trigger prints in dsa_slave_switchdev_event_work() however.

You have to choose between 2 alternatives
(a) keep the FDB entry around until it gets removed from all VLANs
(b) delete the FDB entry as soon as it gets removed from the first VLAN

Both options are going to raise eyebrows. (a) will result in "huh, why
did my packet get delivered to this port when the address wasn't in the
FDB?", while (b) will result in "huh, why was my packet flooded when the
address was in the FDB?"

And since (b) is of lower complexity than (a), I'd just silently exit,
maybe add a comment explaining why, and hope for the best.



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux