summaryrefslogtreecommitdiff
path: root/scripts/gcc-wrapper.py
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-04-01 08:52:12 -0700
committerSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>2016-11-28 14:42:09 -0700
commit68610ce9d9f2b7c1d455b529090ca0dab83a3153 (patch)
tree3dfcdb45a872dd7501fbd7e1bc9d0d63e8fa506d /scripts/gcc-wrapper.py
parent9aa1df0cf5ffb58b52b55b4fe2ea6531f795e186 (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. CRs-Fixed: 1094434 Change-Id: Ib4967b801cc5b48c8ac4793b7a03fbfafba2234a Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Tom Herbert <tom@herbertland.com> Tested-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net> Git-commit: a4298e4522d687a79af8f8fbb7eca68399ab2d81 Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git [subashab@codeaurora.org: resolve trivial merge conflicts] Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Diffstat (limited to 'scripts/gcc-wrapper.py')
0 files changed, 0 insertions, 0 deletions