Re: [PATCH v2 net-next] net: dsa: reference count the host mdb addresses

2020-12-12 Thread Andrew Lunn
> +/* DSA can directly translate this to a normal MDB add, but on the CPU port. > + * But because multiple user ports can join the same multicast group and the > + * bridge will emit a notification for each port, we need to add/delete the > + * entry towards the host only once, so we reference coun

[PATCH v2 net-next] net: dsa: reference count the host mdb addresses

2020-12-12 Thread Vladimir Oltean
Currently any DSA switch that is strict when implementing the mdb operations prints these benign errors after the addresses expire, with at least 2 ports bridged: [ 286.013814] mscc_felix :00:00.5 swp3: failed (err=-2) to del object (id=3) The reason has to do with this piece of code: