]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: allow tls to decrypt directly from the tcp rcv queue
authorJakub Kicinski <kuba@kernel.org>
Fri, 22 Jul 2022 23:50:31 +0000 (16:50 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Jul 2022 21:38:51 +0000 (14:38 -0700)
commite1bad6a2b2c7e33297f0e85581cceb9a030ddd41
treefd885c0c1da7c09d87948646ca261e14ba331bf2
parente63f1cc6cebcf498435f41388a43832d937ad5b1
tcp: allow tls to decrypt directly from the tcp rcv queue

Expose TCP rx queue accessor and cleanup, so that TLS can
decrypt directly from the TCP queue. The expectation
is that the caller can access the skb returned from
tcp_recv_skb() and up to inq bytes worth of data (some
of which may be in ->next skbs) and then call
tcp_read_done() when data has been consumed.
The socket lock must be held continuously across
those two operations.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tcp.h
net/ipv4/tcp.c