diff options
| author | Eric Dumazet <[email protected]> | 2016-04-01 08:52:12 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-04-04 22:11:19 -0400 |
| commit | a4298e4522d687a79af8f8fbb7eca68399ab2d81 (patch) | |
| tree | d7a2c3d16b4659a7121b993f4ba690f20adc99fd /tools/perf/scripts/python | |
| parent | 43e2dfb23eb8f3698718ec1e3936c76912de1c30 (diff) | |
net: add SOCK_RCU_FREE socket flag
We want a generic way to insert an RCU grace period before socket
freeing for cases where RCU_SLAB_DESTROY_BY_RCU is adding too
much overhead.
SLAB_DESTROY_BY_RCU strict rules force us to take a reference
on the socket sk_refcnt, and it is a performance problem for UDP
encapsulation, or TCP synflood behavior, as many CPUs might
attempt the atomic operations on a shared sk_refcnt
UDP sockets and TCP listeners can set SOCK_RCU_FREE so that their
lookup can use traditional RCU rules, without refcount changes.
They can set the flag only once hashed and visible by other cpus.
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Tom Herbert <[email protected]>
Tested-by: Tom Herbert <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions