diff options
author | Florin Coras <fcoras@cisco.com> | 2020-11-05 19:01:44 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2020-11-12 16:31:29 +0000 |
commit | fb9d37402020c5d341e0a5a9e9a937ce06fe6171 (patch) | |
tree | 82dc2abb511d5324f75f4e32147e1d469913ad31 /src/vnet/tcp/tcp_output.c | |
parent | aeb7d80c84b0084c8f63792dc8588193e0bc28a3 (diff) |
tcp: push last buffered sequence
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Iba914ac69585e89f174f09e74ae716df1b080c59
Diffstat (limited to 'src/vnet/tcp/tcp_output.c')
-rw-r--r-- | src/vnet/tcp/tcp_output.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp_output.c b/src/vnet/tcp/tcp_output.c index 13432283677..e2c2b231985 100644 --- a/src/vnet/tcp/tcp_output.c +++ b/src/vnet/tcp/tcp_output.c @@ -323,6 +323,13 @@ tcp_update_burst_snd_vars (tcp_connection_t * tc) tcp_cc_event (tc, TCP_CC_EVT_START_TX); tcp_connection_tx_pacer_reset (tc, tc->cwnd, TRANSPORT_PACER_MIN_BURST); } + + if (tc->flags & TCP_CONN_PSH_PENDING) + { + u32 max_deq = transport_max_tx_dequeue (&tc->connection); + /* Last byte marked for push */ + tc->psh_seq = tc->snd_una + max_deq - 1; + } } #endif /* CLIB_MARCH_VARIANT */ |