tls: suppress wakeups unless we have a full record
authorJakub Kicinski <kuba@kernel.org>
Wed, 31 May 2023 15:35:50 +0000 (08:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jun 2023 08:51:12 +0000 (09:51 +0100)
commit121dca784fc0f6c022493a5d23d86b3cc20380f4
tree64b496dbbe25de2e2ac65beeb1ca1973a66c0f49
parenta395b8d1c7c3a074bfa83b9759a4a11901a295c5
tls: suppress wakeups unless we have a full record

TLS does not override .poll() so TLS-enabled socket will generate
an event whenever data arrives at the TCP socket. This leads to
unnecessary wakeups on slow connections.

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