]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: Add struct mlxsw_sp_switchdev_ops per ASIC
authorAmit Cohen <amcohen@nvidia.com>
Wed, 17 Mar 2021 10:35:26 +0000 (12:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Mar 2021 19:26:28 +0000 (12:26 -0700)
commit39dce830bf91a6642650443da211f93c96402b5e
treec3e67c3bcd90da3373a903bf7ef318d8aab01097
parent4d23a2d6f64cf87ec16703ccc49f874cc01e15f3
mlxsw: Add struct mlxsw_sp_switchdev_ops per ASIC

A subsequent patch will need to implement different set of operations
when a port joins / leaves an 802.1ad bridge, based on the ASIC type.

Prepare for this change by allowing to initialize the bridge module
based on the ASIC type via 'struct mlxsw_sp_switchdev_ops'.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.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_switchdev.c