]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: dsa: mv88e6xxx: override existent unicast portvec in port_fdb_add
authorDENG Qingfang <dqfext@gmail.com>
Sat, 30 Jan 2021 13:43:34 +0000 (21:43 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Feb 2021 02:24:49 +0000 (18:24 -0800)
commitf72f2fb8fb6be095b98af5d740ac50cffd0b0cae
tree7949696d7c67fb9402e39cd48b7007c3b29a1888
parenteb4e8fac00d1e01ada5e57c05d24739156086677
net: dsa: mv88e6xxx: override existent unicast portvec in port_fdb_add

Having multiple destination ports for a unicast address does not make
sense.
Make port_db_load_purge override existent unicast portvec instead of
adding a new port bit.

Fixes: 884729399260 ("net: dsa: mv88e6xxx: handle multiple ports in ATU")
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20210130134334.10243-1-dqfext@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mv88e6xxx/chip.c