tcp: add skb-less helpers to retrieve SYN cookie
authorPetar Penkov <ppenkov@google.com>
Mon, 29 Jul 2019 16:59:14 +0000 (09:59 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 31 Jul 2019 04:03:05 +0000 (21:03 -0700)
commit9349d600fb6a1ca0aaeb515523e1bb5409483d76
tree214a3a4b68356a5977e75afe2117538810b64d10
parent965112785e4bd4355262c6c5a32ea8f349adb401
tcp: add skb-less helpers to retrieve SYN cookie

This patch allows generation of a SYN cookie before an SKB has been
allocated, as is the case at XDP.

Signed-off-by: Petar Penkov <ppenkov@google.com>
Reviewed-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/net/tcp.h
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c