tls: rx: periodically flush socket backlog
authorJakub Kicinski <kuba@kernel.org>
Tue, 5 Jul 2022 23:59:26 +0000 (16:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jul 2022 11:56:35 +0000 (12:56 +0100)
commitc46b01839f7aad5889e23505bbfbeb5f4d7fde8e
treec3759309c9c88b17a1f87d0bcbb4b939491e2ef7
parentf36068a20256bad993d60e49602f02e3af336506
tls: rx: periodically flush socket backlog

We continuously hold the socket lock during large reads and writes.
This may inflate RTT and negatively impact TCP performance.
Flush the backlog periodically. I tried to pick a flush period (128kB)
which gives significant benefit but the max Bps rate is not yet visibly
impacted.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c
net/tls/tls_sw.c