diff options
author | Eric Dumazet <edumazet@google.com> | 2018-03-31 13:16:26 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-01 14:08:21 -0400 |
commit | 1f4c6eb24029689a40dceae561e31ff6926d7f0d (patch) | |
tree | 253468761ee8e0f7a7cd97f21c24ef3c841529e7 /mm/vmstat.c | |
parent | 694aba690de062cf27b28a5e56e7a5a7185b0a1c (diff) |
ipv6: factorize sk_wmem_alloc updates done by __ip6_append_data()
While testing my inet defrag changes, I found that the senders
could spend ~20% of cpu cycles in skb_set_owner_w() updating
sk->sk_wmem_alloc for every fragment they cook, competing
with TX completion of prior skbs possibly happening on another cpus.
The solution to this problem is to use alloc_skb() instead
of sock_wmalloc() and manually perform a single sk_wmem_alloc change.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/vmstat.c')
0 files changed, 0 insertions, 0 deletions