Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
api: fix mp-safe mark for some messages and add more
[vpp.git]
/
src
/
vnet
/
l2
/
l2_api.c
diff --git
a/src/vnet/l2/l2_api.c
b/src/vnet/l2/l2_api.c
index
cb22547
..
a06f7ff
100644
(file)
--- a/
src/vnet/l2/l2_api.c
+++ b/
src/vnet/l2/l2_api.c
@@
-1312,14
+1312,15
@@
l2_api_hookup (vlib_main_t * vm)
{
api_main_t *am = vlibapi_get_main ();
{
api_main_t *am = vlibapi_get_main ();
- /* Mark VL_API_BRIDGE_DOMAIN_DUMP as mp safe */
- vl_api_set_msg_thread_safe (am, VL_API_BRIDGE_DOMAIN_DUMP, 1);
-
/*
* Set up the (msg_name, crc, message-id) table
*/
REPLY_MSG_ID_BASE = setup_message_id_table ();
/*
* Set up the (msg_name, crc, message-id) table
*/
REPLY_MSG_ID_BASE = setup_message_id_table ();
+ /* Mark VL_API_BRIDGE_DOMAIN_DUMP as mp safe */
+ vl_api_set_msg_thread_safe (
+ am, REPLY_MSG_ID_BASE + VL_API_BRIDGE_DOMAIN_DUMP, 1);
+
return 0;
}
return 0;
}