Skip to content

Commit

Permalink
mlxsw: core: Extend port module data structures for line cards
Browse files Browse the repository at this point in the history
The port module core is tasked with module operations such as setting
power mode policy and reset. The per-module information is currently
stored in one large array suited for non-modular systems where only the
main board is present (i.e., slot index 0).

As a preparation for line cards support, allocate a per line card array
according to the queried number of slots in the system. For each line
card, allocate a module array according to the queried maximum number of
modules per-slot.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
vadimp-nvidia authored and davem330 committed Apr 15, 2022
1 parent 3494545 commit e5b6a5b
Showing 1 changed file with 169 additions and 73 deletions.
Loading

0 comments on commit e5b6a5b

Please sign in to comment.