aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-06-26 09:31:04 -0700
committerFlorin Coras <fcoras@cisco.com>2018-06-26 10:55:26 -0700
commitb26743d093141a2aef19bdf8a7fe06dcaa81329a (patch)
treed7e66489e6dd1582f17d5b28de11d9ab18b663f9 /src/vnet/tcp/tcp.c
parent23cdd4c3d750305108c6f55482fe63b8c1712a01 (diff)
tcp/session: tx optimizations
- cache and reuse tcp options and rcv_wnd for session layer tx bursts - avoid reading/setting total_length_not_including_first_buffer. It's part of a buffer's second cache line so it comes at a "cost". Change-Id: Id18219c2f7e07cf4c63ee74f9cdd9e5918904036 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tcp/tcp.c')
-rw-r--r--src/vnet/tcp/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c
index cca9f1c5c90..45eaf016b1e 100644
--- a/src/vnet/tcp/tcp.c
+++ b/src/vnet/tcp/tcp.c
@@ -984,7 +984,7 @@ tcp_session_send_mss (transport_connection_t * trans_conn)
/* Ensure snd_mss does accurately reflect the amount of data we can push
* in a segment. This also makes sure that options are updated according to
* the current state of the connection. */
- tcp_update_snd_mss (tc);
+ tcp_update_burst_snd_vars (tc);
return tc->snd_mss;
}