1. 18 10月, 2017 39 次提交
  2. 17 10月, 2017 1 次提交
    • P
      mlxsw: spectrum: Drop refcounting of IPIP entries · 4cccb737
      Petr Machata 提交于
      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: NPetr Machata <petrm@mellanox.com>
      Reviewed-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4cccb737