OSDN Git Service

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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 17:08:22 +0000 (10:08 -0700)
commit5050f6ae253ad1307af3486c26fc4f94287078b7
tree636a9a52d4d760f68697dc53cfa34fbd987b8eb2
parentab74c3a1274c5ec0711de23b232c35c0f1ac8ba5
mlxsw: spectrum_switchdev: Check notification relevance based on upper device

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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c