From cada9eb7894117db898f7c4def92cba5511baa4f Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 18 May 2022 22:16:11 +0200 Subject: api: refactor api data storage single struct to hold all api handler, flags, etc. Provide functions to toggle flags instead of writing directly to internal data. Type: refactor Change-Id: I4730d7290e57489de8eda34a72211527e015b721 Signed-off-by: Damjan Marion --- src/plugins/lacp/lacp_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/lacp/lacp_api.c') diff --git a/src/plugins/lacp/lacp_api.c b/src/plugins/lacp/lacp_api.c index fce2492be8c..fab28cb6a13 100644 --- a/src/plugins/lacp/lacp_api.c +++ b/src/plugins/lacp/lacp_api.c @@ -125,7 +125,8 @@ lacp_plugin_api_hookup (vlib_main_t * vm) lm->msg_id_base = setup_message_id_table (); /* Mark these APIs as mp safe */ - am->is_mp_safe[lm->msg_id_base + VL_API_SW_INTERFACE_LACP_DUMP] = 1; + vl_api_set_msg_thread_safe ( + am, lm->msg_id_base + VL_API_SW_INTERFACE_LACP_DUMP, 1); return 0; } -- cgit 1.2.3-korg