From 1e6a0f64653c8142fa7032aba127ab4894bafc3c Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 9 Mar 2021 08:36:25 -0800 Subject: session tls: deq notifications for custom tx Type: fix Signed-off-by: Florin Coras Change-Id: I6ed2104e9d79c367ca36460047586f9b632c3315 --- src/vnet/session/session_node.c | 4 ++++ src/vnet/tls/tls.c | 1 + 2 files changed, 5 insertions(+) (limited to 'src/vnet') diff --git a/src/vnet/session/session_node.c b/src/vnet/session/session_node.c index 2e21f26ec29..f5e8478aaf3 100644 --- a/src/vnet/session/session_node.c +++ b/src/vnet/session/session_node.c @@ -1188,6 +1188,10 @@ session_tx_fifo_dequeue_internal (session_worker_t * wrk, session_evt_add_head_old (wrk, elt); } + if (sp->max_burst_size && + svm_fifo_needs_deq_ntf (s->tx_fifo, sp->max_burst_size)) + session_dequeue_notify (s); + return n_packets; } diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c index 6052ca1bf65..b9c07ff9406 100644 --- a/src/vnet/tls/tls.c +++ b/src/vnet/tls/tls.c @@ -353,6 +353,7 @@ tls_ctx_write (tls_ctx_t * ctx, session_t * app_session, sp->max_burst_size = sp->max_burst_size * TRANSPORT_PACER_MIN_MSS; n_wrote = tls_vfts[ctx->tls_ctx_engine].ctx_write (ctx, app_session, sp); + sp->max_burst_size = n_wrote; return n_wrote > 0 ? clib_max (n_wrote / TRANSPORT_PACER_MIN_MSS, 1) : 0; } -- cgit 1.2.3-korg oper-230327'>oper-230327 Integration testsGrokmirror user
aboutsummaryrefslogtreecommitdiffstats
blob: 5db81a80d4ed1e9b482c091e7a54a0eb1d30feff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35