diff options
author | Vadim Pasternak <vadimp@nvidia.com> | 2022-08-21 18:20:18 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-23 17:22:00 -0700 |
commit | 706ddb7821be8c95f07de7e540d824e5c2267001 (patch) | |
tree | c44e9c7d41eaec2ce8f413510959449ca9a6ca9e /include/linux/compiler_attributes.h | |
parent | 01328e23a476a47179b07125eabac439bc1d5fd3 (diff) | |
download | linux-706ddb7821be8c95f07de7e540d824e5c2267001.tar.gz linux-706ddb7821be8c95f07de7e540d824e5c2267001.tar.bz2 linux-706ddb7821be8c95f07de7e540d824e5c2267001.zip |
mlxsw: minimal: Extend to support line card dynamic operations
Implement line card operation callbacks got_active() / got_inactive().
The purpose of these callback to create / remove line card ports after
line card is getting active / inactive.
Implement line ports_remove_selected() callback to support line card
un-provisioning flow through 'devlink'.
Add line card operation registration and de-registration APIs.
Add module offset for line card. Offset for main board iz zero.
For line card in slot #n offset is calculated as (#n - 1) multiplied by
maximum modules number.
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>
Diffstat (limited to 'include/linux/compiler_attributes.h')
0 files changed, 0 insertions, 0 deletions