mlxsw: spectrum_switchdev: Check notification relevance based on upper device
commit75f10bdb5595455425d6c5a0381379d89967c40b
authorIdo Schimmel <idosch@mellanox.com>
Thu, 11 Oct 2018 07:47:52 +0000 (11 07:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:23:33 +0000 (24 08:23 +0100)
tree800ab030fda01092ef8a80aefde4c0299e39689d
parent74c0a15d28d1320bb8bfc88213579e45963ab665
mlxsw: spectrum_switchdev: Check notification relevance based on upper device

[ Upstream commit 5050f6ae253ad1307af3486c26fc4f94287078b7 ]

VxLAN FDB updates are sent with the VxLAN device which is not our upper
and will therefore be ignored by current code.

Solve this by checking whether the upper device (bridge) is our upper.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c