]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdeb4a69f7be75669a1062b98726d3c9dbee09ddb
tree277ed56c70510d5cb1056c08f856defc8a51ab86
parent2c064f673d1fc5581ed2fcfeebf31976289e6766
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