]> 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)
commit52dbf86f4c04158e8e872d716a740e8a29b53f65
tree89597b81b0eb9e6ce7318ace7a17ff8ec507c325
parentf6881f92493272929584f89f87e00fdaaae29d40
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