diff options
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/interface_api.c | 5 | ||||
-rw-r--r-- | src/vnet/interface_cli.c | 1 | ||||
-rw-r--r-- | src/vnet/l2/l2_api.c | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/vnet/interface_api.c b/src/vnet/interface_api.c index e2f4d8fd130..0c1bc643465 100644 --- a/src/vnet/interface_api.c +++ b/src/vnet/interface_api.c @@ -1223,6 +1223,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 264c1f34e18..9632df5f3a7 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 ebb64ff2420..0540297d1d1 100644 --- a/src/vnet/l2/l2_api.c +++ b/src/vnet/l2/l2_api.c @@ -832,6 +832,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 */ |