aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-02-23 19:00:18 +0000
committerFlorin Coras <fcoras@cisco.com>2020-02-23 19:00:18 +0000
commite9570d4ee36fab5ea449b33e6ea4e954b3233f4b (patch)
tree87d7cede3641bd63cb201fc07b4c9b4dd6f5aff3
parentaaf64a263f036c0e98c0ea954c85cfd620abad06 (diff)
session: include timer generated packets in max burst
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ic9174c92ab05b58e62b00999fe9cbf4e9292d43e
-rw-r--r--src/vnet/session/session_node.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/session/session_node.c b/src/vnet/session/session_node.c
index 44dc9cc680d..5f765784d26 100644
--- a/src/vnet/session/session_node.c
+++ b/src/vnet/session/session_node.c
@@ -1272,7 +1272,7 @@ session_queue_node_fn (vlib_main_t * vm, vlib_node_runtime_t * node,
session_evt_elt_t *elt, *ctrl_he, *new_he, *old_he;
clib_llist_index_t ei, next_ei, old_ti;
svm_msg_q_msg_t _msg, *msg = &_msg;
- int i, n_tx_packets = 0;
+ int i, n_tx_packets;
session_event_t *evt;
svm_msg_q_t *mq;
@@ -1285,6 +1285,7 @@ session_queue_node_fn (vlib_main_t * vm, vlib_node_runtime_t * node,
* Update transport time
*/
transport_update_time (wrk->last_vlib_time, thread_index);
+ n_tx_packets = vec_len (wrk->pending_tx_buffers);
/*
* Dequeue and handle new events