]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Introduce port mapping change event processing
authorJiri Pirko <jiri@nvidia.com>
Mon, 18 Apr 2022 06:42:33 +0000 (09:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2022 10:00:19 +0000 (11:00 +0100)
commitd341dc3d1dbf05257c288037266a47ff5c764614
tree9bcece8e52ab8f8580c426c3344fd062b259224e
parent5cbc544027bd53d26dc9d47a1aea8245b257878e
mlxsw: spectrum: Introduce port mapping change event processing

Register PMLPE trap and process the port mapping changes delivered
by it by creating related ports. Note that this happens after
provisioning. The INI of the linecard is processed and merged by FW.
PMLPE is generated for each port. Process this mapping change.

Layout of PMLPE is the same as layout of PMLP.

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/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/trap.h