mlxsw: spectrum_router: mlxsw_sp_inetaddr_bridge_event: Add an argument
authorPetr Machata <petrm@nvidia.com>
Thu, 13 Jul 2023 16:15:28 +0000 (18:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jul 2023 09:20:15 +0000 (10:20 +0100)
commit3430f2cf91a4b0ee4d639644c75f7c7b4b0bf1cf
treee5b70b0433f46f3200cae3b4c83f3f6c3d38c864
parenta24a4d29ff0a4a425913e3f538ba429f2bbd2bbd
mlxsw: spectrum_router: mlxsw_sp_inetaddr_bridge_event: Add an argument

For purposes of replay, mlxsw_sp_inetaddr_bridge_event() will need to make
decisions based on the proposed value of PVID. Querying PVID reveals the
current settings, not the in-flight values that the user requested and that
the notifiers are acting upon. Add a parameter, lower_pvid, which carries
the proposed PVID of the lower bridge, or -1 if the lower is not a bridge.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c