diff options
author | 2017-10-16 16:26:39 +0200 | |
---|---|---|
committer | 2017-10-16 21:30:33 +0100 | |
commit | 4cccb737d2fd0d78b939a97b5ac1831b9a27d4c0 (patch) | |
tree | 4f7749c335088775eb90ff3a7451121a72740559 /net/lapb/lapb_timer.c | |
parent | mlxsw: spectrum: Support IPIP overlay VRF migration (diff) | |
download | linux-dev-4cccb737d2fd0d78b939a97b5ac1831b9a27d4c0.tar.xz linux-dev-4cccb737d2fd0d78b939a97b5ac1831b9a27d4c0.zip |
mlxsw: spectrum: Drop refcounting of IPIP entries
Formerly, IPIP entries were created lazily by next hops that referenced
an offloadable IP-in-IP netdevice. However now that they are created
eagerly as a reaction to events on such netdevices, the reference
counting is useless. Hence drop it.
The routes whose next hops reference an offloaded IP-in-IP netdevice
actually linger around a bit after their device is unregistered.
However, mlxsw_sp_ipip_entry_destroy() also destroys the backing
loopback, and mlxsw_sp_rif_destroy() transitively (via
mlxsw_sp_nexthop_rif_gone_sync()) calls mlxsw_sp_nexthop_ipip_fini(),
which unlinks the IPIP entry from a next hop. Thus no dangling pointers
are left behind for the brief window after netdevice is gone, but routes
not yet.
Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions