]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7a834f9e0ffa2ae2d779bae65c5a1bd48b2ee393
treeeec8fd9dd3566247f7ddfba48ae3c832375ca5f0
parent65a064db421952a00af2ac780b377a4f01d1fd6d
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