]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: per cpu uncached list
authorEric Dumazet <edumazet@google.com>
Wed, 14 Jan 2015 23:17:06 +0000 (15:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jan 2015 23:26:16 +0000 (18:26 -0500)
commit0228326ef0e9d0295594f185209c73ed3db16109
tree28748ee77408e82a64ae13dbb4bd65f1eff6aa26
parenta283934335eae34d057f1ccd349032a78826fc71
ipv4: per cpu uncached list

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: Eric Dumazet <edumazet@google.com>
Fixes: f3166a58ed0f ("ipv4: Properly purge netdev references on uncached routes.")
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/route.h
net/ipv4/route.c