diff options
author | Florin Coras <fcoras@cisco.com> | 2021-04-14 11:23:55 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-04-14 19:26:55 +0000 |
commit | eb839cc079cc1ffc1b74557560d8e9ba746797ef (patch) | |
tree | ac683c535ab0e35c4254db0760dbca615db217f1 /src | |
parent | 1d429df08123abacdb6a4757385cde76653044fa (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')
-rw-r--r-- | src/vnet/session/session.c | 9 |
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] = |