mlxsw: pci: Obtain info about ports used by eXtended mezanine
authorJiri Pirko <jiri@nvidia.com>
Mon, 14 Dec 2020 11:30:30 +0000 (13:30 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Dec 2020 03:09:54 +0000 (19:09 -0800)
commit2ea3f4c7fa7cbf5e693ebefe50a68f8de83126eb
tree277ed56c70510d5cb1056c08f856defc8a51ab86
parentff462103ca4dc196eb6af709ead0903708ce286f
mlxsw: pci: Obtain info about ports used by eXtended mezanine

The output of boardinfo command was extended to contain information
about XM. Indicates if is present and in case it is, tells which
localports are used for the connection. So parse this info and store it
in bus_info passed up to the driver.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/cmd.h
drivers/net/ethernet/mellanox/mlxsw/core.h
drivers/net/ethernet/mellanox/mlxsw/pci.c