mlxsw: core_env: Query and store port module's type during initialization
authorDanielle Ratson <danieller@nvidia.com>
Wed, 26 Jan 2022 10:30:34 +0000 (12:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jan 2022 11:15:42 +0000 (11:15 +0000)
commite62f5b0e3faa0269428d1fc139fe3c3e94a2b70a
tree3eecc352c083fd992e8b2f74932fdc197bad28a7
parent0d31441e87930dcf063ce9662194ebe1936747ed
mlxsw: core_env: Query and store port module's type during initialization

Query and store port module's type during initialization so that it
could be later used to determine if certain configurations are allowed
based on the type.

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_env.c