Dmitry Safonov d6732b95b6 net/tcp: Allow asynchronous delete for TCP-AO keys (MKTs)
Delete becomes very, very fast - almost free, but after setsockopt()
syscall returns, the key is still alive until next RCU grace period.
Which is fine for listen sockets as userspace needs to be aware of
setsockopt(TCP_AO) and accept() race and resolve it with verification
by getsockopt() after TCP connection was accepted.

The benchmark results (on non-loaded box, worse with more RCU work pending):
> ok 33    Worst case delete    16384 keys: min=5ms max=10ms mean=6.93904ms stddev=0.263421
> ok 34        Add a new key    16384 keys: min=1ms max=4ms mean=2.17751ms stddev=0.147564
> ok 35 Remove random-search    16384 keys: min=5ms max=10ms mean=6.50243ms stddev=0.254999
> ok 36         Remove async    16384 keys: min=0ms max=0ms mean=0.0296107ms stddev=0.0172078

Co-developed-by: Francesco Ruggeri <fruggeri@arista.com>
Signed-off-by: Francesco Ruggeri <fruggeri@arista.com>
Co-developed-by: Salam Noureddine <noureddine@arista.com>
Signed-off-by: Salam Noureddine <noureddine@arista.com>
Signed-off-by: Dmitry Safonov <dima@arista.com>
Acked-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-10-27 10:35:45 +01:00
..
2023-05-31 13:06:57 +02:00
2023-10-25 10:38:07 +01:00
2021-05-17 15:29:35 -07:00
2023-03-31 21:37:06 -07:00
2023-10-01 19:39:18 +01:00
2023-04-13 16:43:38 -07:00
2023-10-16 21:05:33 -07:00
2021-05-17 15:29:35 -07:00
2022-09-20 10:21:49 -07:00
2023-10-27 10:35:45 +01:00
2022-12-20 03:13:45 +01:00
2023-10-27 10:35:45 +01:00
2021-05-17 15:29:35 -07:00
2022-11-16 09:43:35 +00:00
2023-10-16 21:05:33 -07:00
2023-09-14 16:16:36 +02:00
2023-08-29 17:39:15 -07:00