]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7b66d2445cb08d2188e1a2ce48fa9fe6e6849d5
treec3759309c9c88b17a1f87d0bcbb4b939491e2ef7
parenta879de1db1bc404a30a58aefc0dacaac89f2f952
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