From: Florin Coras Date: Fri, 29 Mar 2024 22:39:58 +0000 (-0700) Subject: tls: fix rescheduling when no data available X-Git-Tag: v24.10-rc0~136 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=7a18b0f0a5507a1fcb72e031b23bec2fe51e9c14;p=vpp.git tls: fix rescheduling when no data available Don't force tx rescheduling of tls session if no forward progress is made. The session will still be rescheduled by the session infra if there's pending tx data. Type: fix Signed-off-by: Florin Coras Change-Id: Ic57b6ee79969055cec782938668c054bcc39f206 --- diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c index a21e3bb54c1..98982439b96 100644 --- a/src/plugins/tlsopenssl/tls_openssl.c +++ b/src/plugins/tlsopenssl/tls_openssl.c @@ -455,8 +455,11 @@ check_tls_fifo: sp->flags |= TRANSPORT_SND_F_DESCHED; } else - /* Request tx reschedule of the app session */ - app_session->flags |= SESSION_F_CUSTOM_TX; + { + /* Request tx reschedule of the app session */ + if (wrote) + app_session->flags |= SESSION_F_CUSTOM_TX; + } return wrote; }