]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Set RIF ops per ASIC type
authorNir Dotan <nird@mellanox.com>
Sun, 20 Jan 2019 06:50:41 +0000 (06:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Jan 2019 19:12:57 +0000 (11:12 -0800)
commit1536c2ac5e0d99685aad699ca0b0a55b7835a2b4
treef08391b1a4658ca04044c56c574a9e9e2789cf5d
parent5ba26d9a5e35a3fded8e03da90e72074538857e2
mlxsw: spectrum: Set RIF ops per ASIC type

Set RIF ops array as member of mlxsw_sp in order to control which RIF
operations callbacks are called per ASIC type. This is needed to control
per ASIC handling of loopback RIF configurations.

Signed-off-by: Nir Dotan <nird@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c