]> 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)
commit661ec6845275f9f63676987fe3cb22f86ab1f60c
treeeec8fd9dd3566247f7ddfba48ae3c832375ca5f0
parent02b02d99af0e5946bed55c97666101c0b9e9867b
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