]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mlxsw: spectrum_switchdev: Don't ignore deletions of learned MACs
authorPetr Machata <petrm@mellanox.com>
Mon, 29 Oct 2018 14:26:14 +0000 (14:26 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Nov 2018 13:51:54 +0000 (14:51 +0100)
commit79a6dd1cb8e3763122f288834f68b53adc061314
treee1d61adcba0b6572bc75d3fdfc06e62c8b4bd137
parentf235cdcf4fc4924327bcd7df2e10444e60cb9d92
mlxsw: spectrum_switchdev: Don't ignore deletions of learned MACs

[ Upstream commit ad0b9d94182be8356978d220c82f9837cffeb7a9 ]

Demands to remove FDB entries should be honored even if the FDB entry in
question was originally learned, and not added by the user. Therefore
ignore the added_by_user datum for SWITCHDEV_FDB_DEL_TO_DEVICE.

Fixes: 816a3bed9549 ("switchdev: Add fdb.added_by_user to switchdev notifications")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Suggested-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c