aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2019-04-25 11:19:49 -0700
committersteven luong <sluong@cisco.com>2019-05-07 18:17:03 +0000
commitcce845e371f5c61eef9e2e8b64d2d1088c4e4b55 (patch)
treeeca23adadf1f2d84682c40877dccfcff874294d9
parentc2f8265c1db9daccd3c39e717e55c071e50132c3 (diff)
mp_safe SW_INTERFACE_DUMP, SW_INTERFACE_DETAILS, SW_INTERFACE_TAG_ADD_DEL,stable/1810
BRIDGE_DOMAIN_DUMP, CONTROL_PING, CONTROL_PING_REPLY, and show interface CLI Change-Id: I2927573b66bb5dd134b37ffb72af0e6676750917 Signed-off-by: Steven Luong <sluong@cisco.com> (cherry picked from commit 15c31921a628c5500cbed2ebc588d7ddbaa970a3)
-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 3d8f47d..8713ae6 100644
--- a/src/vnet/interface_api.c
+++ b/src/vnet/interface_api.c
@@ -1378,6 +1378,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 360898e..fdbc1a8 100644
--- a/src/vnet/interface_cli.c
+++ b/src/vnet/interface_cli.c
@@ -469,6 +469,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 eb04459..1e14b1c 100644
--- a/src/vnet/l2/l2_api.c
+++ b/src/vnet/l2/l2_api.c
@@ -986,6 +986,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 8686509..dca33e9 100644
--- a/src/vpp/api/api.c
+++ b/src/vpp/api/api.c
@@ -525,6 +525,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;