diff options
author | Jakub Kicinski <kuba@kernel.org> | 2024-04-03 22:21:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-04-06 18:34:31 +0200 |
commit | 9f06f87fef689d28588cde8c7ebb00a67da34026 (patch) | |
tree | 597fb380446889e487955fe12877805fc90d4699 /net/ipv4/tcp_ipv4.c | |
parent | Merge branch 'ynl-rename-array-nest-to-indexed-array' (diff) | |
download | linux-9f06f87fef689d28588cde8c7ebb00a67da34026.tar.xz linux-9f06f87fef689d28588cde8c7ebb00a67da34026.zip |
net: skbuff: generalize the skb->decrypted bit
The ->decrypted bit can be reused for other crypto protocols.
Remove the direct dependency on TLS, add helpers to clean up
the ifdefs leaking out everywhere.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 56b75efcfd12..52963c3bb8ca 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -2044,10 +2044,8 @@ bool tcp_add_backlog(struct sock *sk, struct sk_buff *skb, TCP_SKB_CB(skb)->tcp_flags) & TCPHDR_ACK) || ((TCP_SKB_CB(tail)->tcp_flags ^ TCP_SKB_CB(skb)->tcp_flags) & (TCPHDR_ECE | TCPHDR_CWR)) || -#ifdef CONFIG_TLS_DEVICE - tail->decrypted != skb->decrypted || -#endif !mptcp_skb_can_collapse(tail, skb) || + skb_cmp_decrypted(tail, skb) || thtail->doff != th->doff || memcmp(thtail + 1, th + 1, hdrlen - sizeof(*th))) goto no_coalesce; |