mp_safe SW_INTERFACE_DUMP, SW_INTERFACE_DETAILS, SW_INTERFACE_TAG_ADD_DEL,

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 15c31921a6)
This commit is contained in:
Steven Luong
2019-04-25 11:19:49 -07:00
committed by steven luong
parent 19baa37762
commit 070b810a88
4 changed files with 11 additions and 0 deletions

View File

@ -1223,6 +1223,11 @@ interface_api_hookup (vlib_main_t * vm)
foreach_vpe_api_msg; foreach_vpe_api_msg;
#undef _ #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 * Set up the (msg_name, crc, message-id) table
*/ */

View File

@ -469,6 +469,7 @@ VLIB_CLI_COMMAND (show_sw_interfaces_command, static) = {
.path = "show interface", .path = "show interface",
.short_help = "show interface [address|addr|features|feat] [<interface> [<interface> [..]]] [verbose]", .short_help = "show interface [address|addr|features|feat] [<interface> [<interface> [..]]] [verbose]",
.function = show_sw_interfaces, .function = show_sw_interfaces,
.is_mp_safe = 1,
}; };
/* *INDENT-ON* */ /* *INDENT-ON* */

View File

@ -832,6 +832,9 @@ l2_api_hookup (vlib_main_t * vm)
foreach_vpe_api_msg; foreach_vpe_api_msg;
#undef _ #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 * Set up the (msg_name, crc, message-id) table
*/ */

View File

@ -461,6 +461,8 @@ vpe_api_hookup (vlib_main_t * vm)
/* /*
* Thread-safe API messages * 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_IP_ADD_DEL_ROUTE] = 1;
am->is_mp_safe[VL_API_GET_NODE_GRAPH] = 1; am->is_mp_safe[VL_API_GET_NODE_GRAPH] = 1;