diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-07-22 16:50:33 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-26 14:38:51 -0700 |
commit | 84c61fe1a75b4255df1e1e7c054c9e6d048da417 (patch) | |
tree | d3c53a4093eb61d366bb5b796e4f829cd8768e06 /scripts/depmod.sh | |
parent | 8b3c59a7a0bed6fe365755ac211dcf94fdac81b4 (diff) |
tls: rx: do not use the standard strparser
TLS is a relatively poor fit for strparser. We pause the input
every time a message is received, wait for a read which will
decrypt the message, start the parser, repeat. strparser is
built to delineate the messages, wrap them in individual skbs
and let them float off into the stack or a different socket.
TLS wants the data pages and nothing else. There's no need
for TLS to keep cloning (and occasionally skb_unclone()'ing)
the TCP rx queue.
This patch uses a pre-allocated skb and attaches the skbs
from the TCP rx queue to it as frags. TLS is careful never
to modify the input skb without CoW'ing / detaching it first.
Since we call TCP rx queue cleanup directly we also get back
the benefit of skb deferred free.
Overall this results in a 6% gain in my benchmarks.
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/depmod.sh')
0 files changed, 0 insertions, 0 deletions