aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-11-02 14:32:52 -0700
committerFlorin Coras <fcoras@cisco.com>2019-11-02 15:17:46 -0700
commitdd97a48d9fac91c7f16a31aa661dd6c968c3b760 (patch)
tree069f36122d0811f05b75ce3628f2b725e558f609 /src/vnet/session/session.h
parenta1f5a956e5b2cfeb591dcdfb34d23ebed84d0bca (diff)
session: reschedule asap when snd space constrained
Type: feature Improves fairness for sessions that are snd space or pacer constrained. Change-Id: Ida5f523090f1dcbfb17bf5116bc7917747ac8593 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.h')
-rw-r--r--src/vnet/session/session.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vnet/session/session.h b/src/vnet/session/session.h
index f738f3957e2..9fe35b19b25 100644
--- a/src/vnet/session/session.h
+++ b/src/vnet/session/session.h
@@ -221,6 +221,14 @@ session_evt_add_old (session_worker_t * wrk, session_evt_elt_t * elt)
pool_elt_at_index (wrk->event_elts, wrk->old_head));
}
+static inline void
+session_evt_add_head_old (session_worker_t * wrk, session_evt_elt_t * elt)
+{
+ clib_llist_add (wrk->event_elts, evt_list, elt,
+ pool_elt_at_index (wrk->event_elts, wrk->old_head));
+}
+
+
static inline u32
session_evt_ctrl_data_alloc (session_worker_t * wrk)
{