From cda35b38d7b690a63a17967268e8c1339a16dfd2 Mon Sep 17 00:00:00 2001 From: Steven Luong Date: Thu, 15 Aug 2019 20:30:23 -0700 Subject: lacp: mark is_mp_safe for show and dump binary API show and dump binary APIs for lacp neighbors are running in the same thread as the create and delete interface. There is no need for barrier lock. Type: fix Signed-off-by: Steven Luong Change-Id: Id584bd7408210fcc23b464ef2084f11f88bca58b --- src/plugins/lacp/lacp_api.c | 4 ++++ 1 file changed, 4 insertions(+) (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 ed3ead626c9..f28f06cb2ca 100644 --- a/src/plugins/lacp/lacp_api.c +++ b/src/plugins/lacp/lacp_api.c @@ -190,6 +190,10 @@ lacp_plugin_api_hookup (vlib_main_t * vm) foreach_lacp_plugin_api_msg; #undef _ + /* Mark these APIs as mp safe */ + am->is_mp_safe[VL_API_SW_INTERFACE_LACP_DUMP] = 1; + am->is_mp_safe[VL_API_SW_INTERFACE_LACP_DETAILS] = 1; + /* * Set up the (msg_name, crc, message-id) table */ -- cgit 1.2.3-korg