OSDN Git Service

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)
commit0f74fa5617305aa555db7cbc8c19b8eff4806efe
treec3e67c3bcd90da3373a903bf7ef318d8aab01097
parent114a465d890a4fa2e3c0a49001cd47d3e804bf54
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