summaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-04-14 11:23:55 -0700
committerFlorin Coras <florin.coras@gmail.com>2021-04-14 19:26:55 +0000
commiteb839cc079cc1ffc1b74557560d8e9ba746797ef (patch)
treeac683c535ab0e35c4254db0760dbca615db217f1 /src/vnet/session
parent1d429df08123abacdb6a4757385cde76653044fa (diff)
session: fix next node add on transport registration
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I11eac12d2ae68a713e78ef68d09b692fce48c18e
Diffstat (limited to 'src/vnet/session')
-rw-r--r--src/vnet/session/session.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index fd52f2bbc1c..5c45cf25146 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -1607,13 +1607,8 @@ session_register_transport (transport_proto_t transport_proto,
vec_validate (smm->session_tx_fns, session_type);
if (output_node != ~0)
- {
- foreach_vlib_main ()
- {
- next_index = vlib_node_add_next (
- this_vlib_main, session_queue_node.index, output_node);
- }
- }
+ next_index = vlib_node_add_next (vlib_get_main (),
+ session_queue_node.index, output_node);
smm->session_type_to_next[session_type] = next_index;
smm->session_tx_fns[session_type] =