diff options
| author | Eric Dumazet <[email protected]> | 2023-08-16 08:15:45 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-08-16 10:09:18 +0000 |
| commit | 08e39c0dfa29f233f5a621f7d274b793a080c769 (patch) | |
| tree | 5edd6e05adc3042bbf121d2c62424e28759df625 /net/ipv4/tcp_fastopen.c | |
| parent | inet: move inet->bind_address_no_port to inet->inet_flags (diff) | |
| download | kernel-08e39c0dfa29f233f5a621f7d274b793a080c769.tar.gz kernel-08e39c0dfa29f233f5a621f7d274b793a080c769.zip | |
inet: move inet->defer_connect to inet->inet_flags
Make room in struct inet_sock by removing this bit field,
using one available bit in inet_flags instead.
Also move local_port_range to fill the resulting hole,
saving 8 bytes on 64bit arches.
Signed-off-by: Eric Dumazet <[email protected]>
Acked-by: Soheil Hassas Yeganeh <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Matthieu Baerts <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_fastopen.c')
| -rw-r--r-- | net/ipv4/tcp_fastopen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_fastopen.c b/net/ipv4/tcp_fastopen.c index 85e4953f1182..8ed54e7334a9 100644 --- a/net/ipv4/tcp_fastopen.c +++ b/net/ipv4/tcp_fastopen.c @@ -451,7 +451,7 @@ bool tcp_fastopen_defer_connect(struct sock *sk, int *err) if (tp->fastopen_connect && !tp->fastopen_req) { if (tcp_fastopen_cookie_check(sk, &mss, &cookie)) { - inet_sk(sk)->defer_connect = 1; + inet_set_bit(DEFER_CONNECT, sk); return true; } |
