diff options
author | Florin Coras <fcoras@cisco.com> | 2020-11-12 10:20:05 -0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2020-12-01 18:50:59 +0000 |
commit | a39f472a2cf7c033deb9f7073489f83a17d5bf12 (patch) | |
tree | 506adc79c9d4f840b092c8f3299397f74f88fc80 /src/vnet/session/session.h | |
parent | 7808df2e2fd0fd61a27e5a5322dc6dafe40924e5 (diff) |
session: make pacer worker load aware
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I71b9d54311fcad808fcdaad0df2dca8c161d580e
Diffstat (limited to 'src/vnet/session/session.h')
-rw-r--r-- | src/vnet/session/session.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vnet/session/session.h b/src/vnet/session/session.h index 9b9cd29114d..e62aea483cf 100644 --- a/src/vnet/session/session.h +++ b/src/vnet/session/session.h @@ -552,6 +552,12 @@ transport_us_time_now (u32 thread_index) return session_main.wrk[thread_index].last_vlib_us_time; } +always_inline clib_time_type_t +transport_seconds_per_loop (u32 thread_index) +{ + return session_main.wrk[thread_index].vm->seconds_per_loop; +} + always_inline void transport_add_tx_event (transport_connection_t * tc) { |