aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/tls.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-12-06 09:38:36 -0800
committerDavid S. Miller <davem@davemloft.net>2019-12-06 12:06:44 -0800
commit1af66221a66de080274540a5c481ddacbe3574d2 (patch)
treea590d14576eeb53502e7d98d3a222e2368099c59 /tools/testing/selftests/net/tls.c
parentphy: mdio-thunder: add missed pci_release_regions in remove (diff)
downloadlinux-dev-1af66221a66de080274540a5c481ddacbe3574d2.tar.xz
linux-dev-1af66221a66de080274540a5c481ddacbe3574d2.zip
net: avoid an indirect call in ____sys_recvmsg()
CONFIG_RETPOLINE=y made indirect calls expensive. gcc seems to add an indirect call in ____sys_recvmsg(). Rewriting the code slightly makes sure to avoid this indirection. Alternative would be to not call sock_recvmsg() and instead use security_socket_recvmsg() and sock_recvmsg_nosec(), but this is less readable IMO. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Paolo Abeni <pabeni@redhat.com> Cc: David Laight <David.Laight@aculab.com> Acked-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions