Searched hist:"38 ebcf5096a86762b82262e96b2c8b170fe79040" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/core/ |
H A D | scm.c | diff 38ebcf5096a86762b82262e96b2c8b170fe79040 Thu Apr 15 12:37:53 CDT 2021 Eric Dumazet <edumazet@google.com> scm: optimize put_cmsg()
Calling two copy_to_user() for very small regions has very high overhead.
Switch to inlined unsafe_put_user() to save one stac/clac sequence, and avoid copy_to_user().
Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Soheil Hassas Yeganeh <soheil@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|