Skip to content
  • Eric Dumazet's avatar
    ipv4: per cpu uncached list · 5055c371
    Eric Dumazet authored
    
    
    RAW sockets with hdrinc suffer from contention on rt_uncached_lock
    spinlock.
    
    One solution is to use percpu lists, since most routes are destroyed
    by the cpu that created them.
    
    It is unclear why we even have to put these routes in uncached_list,
    as all outgoing packets should be freed when a device is dismantled.
    
    Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
    Fixes: caacf05e
    
     ("ipv4: Properly purge netdev references on uncached routes.")
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    5055c371