diff options
author | Neale Ranns <nranns@cisco.com> | 2018-10-17 06:38:00 +0000 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-10-17 09:46:16 +0000 |
commit | 6a231a16b2f394f9bc108913e91b4ae1f9bff98c (patch) | |
tree | c71166cd1166a06e5653208a86b76541668db33d /src/vnet | |
parent | c977e7c100f5727183f9452e2c0d086623a21d15 (diff) |
IP Route add/del API is MP safe
Change-Id: I0bfa4c9a3bb22155d7862cc13019cb172e77407c
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/ip/ip_api.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vnet/ip/ip_api.c b/src/vnet/ip/ip_api.c index 4355d11e792..2a342d08599 100644 --- a/src/vnet/ip/ip_api.c +++ b/src/vnet/ip/ip_api.c @@ -3371,6 +3371,12 @@ ip_api_hookup (vlib_main_t * vm) #undef _ /* + * Mark the route add/del API as MP safe + */ + am->is_mp_safe[VL_API_IP_ADD_DEL_ROUTE] = 1; + am->is_mp_safe[VL_API_IP_ADD_DEL_ROUTE_REPLY] = 1; + + /* * Set up the (msg_name, crc, message-id) table */ setup_message_id_table (am); |