mlxsw: core_linecards: Probe provisioned line cards for devices and attach them
authorJiri Pirko <jiri@nvidia.com>
Mon, 25 Apr 2022 03:44:25 +0000 (06:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2022 09:42:28 +0000 (10:42 +0100)
commit8e2e10f651129d6e270a0b9a8bd3aaf0aa3f06d4
treeeec8fd9dd3566247f7ddfba48ae3c832375ca5f0
parent798e2df5067caeb38afe501decec02abdac8a0d7
mlxsw: core_linecards: Probe provisioned line cards for devices and attach them

In case the line card is provisioned, go over all possible existing
devices (gearboxes) on it and attach them, so devlink core is aware of
them.

Signed-off-by: Jiri Pirko <jiri@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.h
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c