diff options
author | 2018-12-19 06:08:47 +0000 | |
---|---|---|
committer | 2018-12-19 12:28:07 -0800 | |
commit | 21ffedb6db5ac80b2081f425be358a976f5c14b7 (patch) | |
tree | 21f62951aef8b74d96b5d501605bedef3cfdf7e3 /net/xfrm/xfrm_input.c | |
parent | mlxsw: spectrum: Properly cleanup LAG uppers when removing port from LAG (diff) | |
download | wireguard-linux-21ffedb6db5ac80b2081f425be358a976f5c14b7.tar.xz wireguard-linux-21ffedb6db5ac80b2081f425be358a976f5c14b7.zip |
mlxsw: spectrum_router: Propagate 'struct mlxsw_sp' further
Next patch is going to make RIF deletion more robust by removing
reliance on fragile mlxsw_sp_lower_get(). This is because a netdev is
not necessarily our upper anymore when its IP addresses are flushed.
The inet{,6}addr notification blocks are going to resolve 'struct
mlxsw_sp' using container_of(), but the functions they call still use
mlxsw_sp_lower_get().
As a preparation for the next patch, propagate 'struct mlxsw_sp' down to
the functions called from the notification blocks and remove reliance on
mlxsw_sp_lower_get().
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_input.c')
0 files changed, 0 insertions, 0 deletions