diff options
author | Jiri Pirko <jiri@nvidia.com> | 2022-04-25 06:44:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-25 12:42:28 +0300 |
commit | 8e2e10f651129d6e270a0b9a8bd3aaf0aa3f06d4 (patch) | |
tree | eec8fd9dd3566247f7ddfba48ae3c832375ca5f0 /drivers/net/ethernet/mellanox/mlxsw/core.h | |
parent | 798e2df5067caeb38afe501decec02abdac8a0d7 (diff) | |
download | linux-8e2e10f651129d6e270a0b9a8bd3aaf0aa3f06d4.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/core.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core.h b/drivers/net/ethernet/mellanox/mlxsw/core.h index c2a891287047..d008282d7f2e 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core.h +++ b/drivers/net/ethernet/mellanox/mlxsw/core.h @@ -581,6 +581,7 @@ struct mlxsw_linecard { active:1; u16 hw_revision; u16 ini_version; + struct list_head device_list; }; struct mlxsw_linecard_types_info; |