mlxsw: spectrum_switchdev: Check notification relevance based on upper device
authorIdo Schimmel <idosch@mellanox.com>
Thu, 11 Oct 2018 07:47:52 +0000 (07:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:21:05 +0000 (08:21 +0100)
commit183f9ae8c4d2207448e55b6cb6a730799f33d289
treecb0ef2cb1b479dab01db34149c24ea76407c39ff
parent16ad1c43196abaee09a696cd99c78ba35f9c49c1
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