aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/interface_api.c
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2019-04-25 11:19:49 -0700
committerDave Barach <openvpp@barachs.net>2019-05-02 19:52:31 +0000
commit15c31921a628c5500cbed2ebc588d7ddbaa970a3 (patch)
tree04477143726f74f8cc74e9db1e8e04fbbac4218e /src/vnet/interface_api.c
parent95c5267ea1ae4006716529ea7f28299a5c99a9cc (diff)
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>
Diffstat (limited to 'src/vnet/interface_api.c')
-rw-r--r--src/vnet/interface_api.c5
1 files changed, 5 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
*/