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)
commitf2e9de210d50187d206989e60bc5a99c2b692209
tree89597b81b0eb9e6ce7318ace7a17ff8ec507c325
parent2b9156129f8ee7312287c4826fe4c34a5402d74e
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