aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vnet/interface_api.c5
-rw-r--r--src/vnet/interface_cli.c1
-rw-r--r--src/vnet/l2/l2_api.c3
-rw-r--r--src/vpp/api/api.c2
4 files changed, 11 insertions, 0 deletions
diff --git a/src/vnet/interface_api.c b/src/vnet/interface_api.c
index bd5588e2625..e5ecd876082 100644
--- a/src/vnet/interface_api.c
+++ b/src/vnet/interface_api.c
@@ -1377,6 +1377,11 @@ interface_api_hookup (vlib_main_t * vm)
foreach_vpe_api_msg;
#undef _
+ /* Mark these APIs as mp safe */
+ am->is_mp_safe[VL_API_SW_INTERFACE_DUMP] = 1;
+ am->is_mp_safe[VL_API_SW_INTERFACE_DETAILS] = 1;
+ am->is_mp_safe[VL_API_SW_INTERFACE_TAG_ADD_DEL] = 1;
+
/*
* Set up the (msg_name, crc, message-id) table
*/
diff --git a/src/vnet/interface_cli.c b/src/vnet/interface_cli.c
index b15d283fe49..82b6ea94278 100644
--- a/src/vnet/interface_cli.c
+++ b/src/vnet/interface_cli.c
@@ -470,6 +470,7 @@ VLIB_CLI_COMMAND (show_sw_interfaces_command, static) = {
.path = "show interface",
.short_help = "show interface [address|addr|features|feat] [<interface> [<interface> [..]]] [verbose]",
.function = show_sw_interfaces,
+ .is_mp_safe = 1,
};
/* *INDENT-ON* */
diff --git a/src/vnet/l2/l2_api.c b/src/vnet/l2/l2_api.c
index 059f668d664..00387d26dfe 100644
--- a/src/vnet/l2/l2_api.c
+++ b/src/vnet/l2/l2_api.c
@@ -1027,6 +1027,9 @@ l2_api_hookup (vlib_main_t * vm)
foreach_vpe_api_msg;
#undef _
+ /* Mark VL_API_BRIDGE_DOMAIN_DUMP as mp safe */
+ am->is_mp_safe[VL_API_BRIDGE_DOMAIN_DUMP] = 1;
+
/*
* Set up the (msg_name, crc, message-id) table
*/
diff --git a/src/vpp/api/api.c b/src/vpp/api/api.c
index ed769d284fc..c672a3b3620 100644
--- a/src/vpp/api/api.c
+++ b/src/vpp/api/api.c
@@ -537,6 +537,8 @@ vpe_api_hookup (vlib_main_t * vm)
/*
* Thread-safe API messages
*/
+ am->is_mp_safe[VL_API_CONTROL_PING] = 1;
+ am->is_mp_safe[VL_API_CONTROL_PING_REPLY] = 1;
am->is_mp_safe[VL_API_IP_ADD_DEL_ROUTE] = 1;
am->is_mp_safe[VL_API_GET_NODE_GRAPH] = 1;