summaryrefslogtreecommitdiff
path: root/include/linux/compiler_attributes.h
diff options
context:
space:
mode:
authorVadim Pasternak <vadimp@nvidia.com>2022-08-21 18:20:17 +0200
committerJakub Kicinski <kuba@kernel.org>2022-08-23 17:22:00 -0700
commit01328e23a476a47179b07125eabac439bc1d5fd3 (patch)
tree75d6677c1f5672020464efc58f3363017d36092d /include/linux/compiler_attributes.h
parent9421c8b89dbbd3b164ac09f84f1bc8e83232ebb4 (diff)
mlxsw: minimal: Extend module to port mapping with slot index
The interfaces for ports found on line card are created and removed dynamically after line card is getting active or inactive. Introduce per line card array with module to port mapping. For each port get 'slot_index' through PMLP register and set port mapping for the relevant [slot_index][module] entry. Split module and port allocation into separate routines. Split per line card port creation and removing into separate routines. Motivation to re-use these routines for line card operations. 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