Home
last modified time | relevance | path

Searched hist:"694 aba690de062cf27b28a5e56e7a5a7185b0a1c" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/ipv4/
H A Dip_output.cdiff 694aba690de062cf27b28a5e56e7a5a7185b0a1c Sat Mar 31 15:16:25 CDT 2018 Eric Dumazet <edumazet@google.com> ipv4: factorize sk_wmem_alloc updates done by __ip_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.

The solution to this problem is to use alloc_skb() instead
of sock_wmalloc() and manually perform a single sk_wmem_alloc change.

Similar change for IPv6 is provided in following patch.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>