summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2019-08-15 20:30:23 -0700
committerDamjan Marion <dmarion@me.com>2019-09-25 22:07:01 +0000
commitd8aa2ae327b6fdee188a1604bc205d438e16f594 (patch)
treeffc5e19ea7597cf0a59eddf16d265e28a57e7bd3 /src/plugins
parent34f17c44729a470e483394adb46d759b525c4b01 (diff)
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 <sluong@cisco.com> Change-Id: Id584bd7408210fcc23b464ef2084f11f88bca58b (cherry picked from commit cda35b38d7b690a63a17967268e8c1339a16dfd2)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lacp/cli.c1
-rw-r--r--src/plugins/lacp/lacp_api.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/lacp/cli.c b/src/plugins/lacp/cli.c
index 92a890d2e37..36a6f9bfbdf 100644
--- a/src/plugins/lacp/cli.c
+++ b/src/plugins/lacp/cli.c
@@ -315,6 +315,7 @@ VLIB_CLI_COMMAND (show_lacp_command, static) = {
.path = "show lacp",
.short_help = "show lacp [<interface>] [details]",
.function = show_lacp_fn,
+ .is_mp_safe = 1,
};
/* *INDENT-ON* */
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
*/