diff options
author | Florin Coras <fcoras@cisco.com> | 2019-10-22 19:01:39 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-11-05 15:50:37 +0000 |
commit | a8e71c8981f039588a7ca94e6ab66b4ebac784a5 (patch) | |
tree | e1cb1e3ff299d16276c0060901705d446645a445 /src/vnet/session/session_node.c | |
parent | 0b6a857d85df97e887de7aaf00fd6bd2dae39bf8 (diff) |
session tcp: refactor pacer time
Type: refactor
Change-Id: Ic1c3e1f7987702cd88972acc34849dc1f585d5fe
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session_node.c')
-rw-r--r-- | src/vnet/session/session_node.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/vnet/session/session_node.c b/src/vnet/session/session_node.c index 3bfc80eca66..e5faf3c1663 100644 --- a/src/vnet/session/session_node.c +++ b/src/vnet/session/session_node.c @@ -871,10 +871,7 @@ session_tx_fifo_read_and_snd_i (session_worker_t * wrk, return SESSION_TX_NO_DATA; } - ctx->snd_space = transport_connection_snd_space (ctx->tc, - vm->clib_time. - last_cpu_time, - ctx->snd_mss); + ctx->snd_space = transport_connection_snd_space (ctx->tc, ctx->snd_mss); /* This flow queue is "empty" so it should be re-evaluated before * the ones that have data to send. */ @@ -892,9 +889,7 @@ session_tx_fifo_read_and_snd_i (session_worker_t * wrk, if (PREDICT_FALSE (!ctx->max_len_to_snd)) { - transport_connection_tx_pacer_reset_bucket (ctx->tc, - vm->clib_time. - last_cpu_time); + transport_connection_tx_pacer_reset_bucket (ctx->tc); return SESSION_TX_NO_DATA; } @@ -1257,6 +1252,7 @@ session_queue_node_fn (vlib_main_t * vm, vlib_node_runtime_t * node, SESSION_EVT (SESSION_EVT_DISPATCH_START, wrk); wrk->last_vlib_time = vlib_time_now (vm); + wrk->last_vlib_us_time = wrk->last_vlib_time * CLIB_US_TIME_FREQ; /* * Update transport time |