Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
mp_safe SW_INTERFACE_DUMP, SW_INTERFACE_DETAILS, SW_INTERFACE_TAG_ADD_DEL,
[vpp.git]
/
src
/
vnet
/
interface_api.c
diff --git
a/src/vnet/interface_api.c
b/src/vnet/interface_api.c
index
bd5588e
..
e5ecd87
100644
(file)
--- 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 _
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
*/
/*
* Set up the (msg_name, crc, message-id) table
*/