X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fsession%2Fsession_node.c;h=8a96f5854994c3a89b244ce405fe1c37a6fd025b;hb=7ce23f25bbc01d534ca294ce88ab0d709e3e03a7;hp=0f5030b4d3148278aa1a19f72be5a910fbf93123;hpb=da302e4fce1003a2fdd2ace7e1ae09987399092c;p=vpp.git diff --git a/src/vnet/session/session_node.c b/src/vnet/session/session_node.c index 0f5030b4d31..8a96f585499 100644 --- a/src/vnet/session/session_node.c +++ b/src/vnet/session/session_node.c @@ -959,6 +959,8 @@ session_tx_fifo_read_and_snd_i (session_worker_t * wrk, return SESSION_TX_NO_BUFFERS; } + transport_connection_update_tx_bytes (ctx->tc, ctx->max_len_to_snd); + ctx->left_to_snd = ctx->max_len_to_snd; n_left = ctx->n_segs_per_evt; @@ -1032,7 +1034,6 @@ session_tx_fifo_read_and_snd_i (session_worker_t * wrk, vlib_buffer_free (vm, wrk->tx_buffers, n_bufs); *n_tx_packets += ctx->n_segs_per_evt; - transport_connection_update_tx_bytes (ctx->tc, ctx->max_len_to_snd); SESSION_EVT (SESSION_EVT_DEQ, ctx->s, ctx->max_len_to_snd, ctx->max_dequeue, ctx->s->tx_fifo->has_event, wrk->last_vlib_time);