mlxsw: core: Extend driver ops by remove selected ports op
authorJiri Pirko <jiri@nvidia.com>
Mon, 18 Apr 2022 06:42:39 +0000 (09:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2022 10:00:19 +0000 (11:00 +0100)
commit45bf3b7267e0264ff25f85ea46ba4628d39b69b4
tree43affad4c3fabaf0939780a0eb5fdab30802edc4
parentee7a70fa671b274aa7e34c66a6e9ab55acadc59a
mlxsw: core: Extend driver ops by remove selected ports op

In case of line card implementation, the core has to have a way to
remove relevant ports manually. Extend the Spectrum driver ops by an op
that implements port removal of selected ports upon request.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.c
drivers/net/ethernet/mellanox/mlxsw/core.h
drivers/net/ethernet/mellanox/mlxsw/spectrum.c