]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: minimal: Move ports allocation to separate routine
authorVadim Pasternak <vadimp@nvidia.com>
Sun, 21 Aug 2022 16:20:16 +0000 (18:20 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 24 Aug 2022 00:22:00 +0000 (17:22 -0700)
commit215c38c24a7bba625cdb8a8cd812d5397aed952c
treebf1360fceea6f98d3542da4add68679774ba8ade
parent51d2e691683946472947277fa2888e2fc0148dbe
mlxsw: minimal: Move ports allocation to separate routine

Perform ports allocation in a separate routine.
Motivation is to re-use this routine for ports found on line cards.

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