summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/transport.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-01-20 18:10:26 -0800
committerDave Barach <openvpp@barachs.net>2022-01-22 00:29:30 +0000
commit5384cca85573f553452254abc888f0153a26c15e (patch)
treecec0101efd61ec4d0240ca11165772b8d6268de9 /src/vnet/session/transport.c
parent77e69ae2d172dce74f4da4cae52bb63e28daa3ae (diff)
session: update time for list of subscribers
Instead of constantly scanning all transport vfts for update time functions, build list at transport enable time. Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Id5c07cc03ee1fdd072ebbbd40119d1a440a5e3b1
Diffstat (limited to 'src/vnet/session/transport.c')
-rw-r--r--src/vnet/session/transport.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/session/transport.c b/src/vnet/session/transport.c
index 5d03a4f8453..92df3656a8c 100644
--- a/src/vnet/session/transport.c
+++ b/src/vnet/session/transport.c
@@ -830,6 +830,9 @@ transport_enable_disable (vlib_main_t * vm, u8 is_en)
{
if (vft->enable)
(vft->enable) (vm, is_en);
+
+ if (vft->update_time)
+ session_register_update_time_fn (vft->update_time, is_en);
}
}