OSDN Git Service

mlxsw: spectrum_switchdev: Do not assume notifier information type
authorIdo Schimmel <idosch@mellanox.com>
Thu, 11 Oct 2018 07:47:53 +0000 (07:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 17:08:22 +0000 (10:08 -0700)
commit9c73b1d120aadf26a3bbf34841ddac73b29c0326
tree5cc802e37a84c2e57f92ccd08ece3c555b355231
parent5050f6ae253ad1307af3486c26fc4f94287078b7
mlxsw: spectrum_switchdev: Do not assume notifier information type

VxLAN notifications are going to use a different notifier information
type, so cast to the correct type based on the received event.

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