]> git.baikalelectronics.ru Git - kernel.git/commit
udp: gro behind static key
authorWillem de Bruijn <willemb@google.com>
Fri, 5 Oct 2018 15:31:40 +0000 (11:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Oct 2018 18:52:38 +0000 (11:52 -0700)
commiteac7f4271ef6904329279fe1202bb57b3f95e1f7
tree89597b81b0eb9e6ce7318ace7a17ff8ec507c325
parent1a1025a4b881ca8fb4947187d5ab0c76dd84ea05
udp: gro behind static key

Avoid the socket lookup cost in udp_gro_receive if no socket has a
udp tunnel callback configured.

udp_sk(sk)->gro_receive requires a registration with
setup_udp_tunnel_sock, which enables the static key.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/udp.h
net/ipv4/udp.c
net/ipv4/udp_offload.c
net/ipv6/udp.c
net/ipv6/udp_offload.c