]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: minimal: Extend APIs with slot index for modular system support
authorVadim Pasternak <vadimp@nvidia.com>
Sun, 21 Aug 2022 16:20:15 +0000 (18:20 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 24 Aug 2022 00:22:00 +0000 (17:22 -0700)
commit51d2e691683946472947277fa2888e2fc0148dbe
tree305eb99ac8d7a0687f1a613cf7bd1eced141c954
parent0f54314f31a8313b843f9ad1cd2e587b7d752123
mlxsw: minimal: Extend APIs with slot index for modular system support

Add 'slot_index' field to port structure.
Replace zero slot_index argument with 'slot_index' in 'ethtool'
related APIs.
Add 'slot_index' argument to port initialization and
de-initialization related APIs.

Motivation is to prepare minimal driver for modular system support.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/minimal.c