Dmitry Safonov 9396c4ee93 net/tcp: Don't store TCP-AO maclen on reqsk
This extra check doesn't work for a handshake when SYN segment has
(current_key.maclen != rnext_key.maclen). It could be amended to
preserve rnext_key.maclen instead of current_key.maclen, but that
requires a lookup on listen socket.

Originally, this extra maclen check was introduced just because it was
cheap. Drop it and convert tcp_request_sock::maclen into boolean
tcp_request_sock::used_tcp_ao.

Fixes: 06b22ef29591 ("net/tcp: Wire TCP-AO to request sockets")
Signed-off-by: Dmitry Safonov <dima@arista.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2023-12-06 12:36:56 +01:00
..
2023-05-31 13:06:57 +02:00
2023-10-25 10:38:07 +01:00
2023-04-13 16:43:38 -07:00
2023-10-16 21:05:33 -07:00
2023-11-03 09:16:42 +00:00
2022-12-20 03:13:45 +01:00
2023-10-30 14:36:57 -07:00
2023-09-14 16:16:36 +02:00
2023-08-29 17:39:15 -07:00