From 6a231a16b2f394f9bc108913e91b4ae1f9bff98c Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Wed, 17 Oct 2018 06:38:00 +0000 Subject: IP Route add/del API is MP safe Change-Id: I0bfa4c9a3bb22155d7862cc13019cb172e77407c Signed-off-by: Neale Ranns --- src/vnet/ip/ip_api.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/vnet') 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 @@ -3370,6 +3370,12 @@ ip_api_hookup (vlib_main_t * vm) foreach_ip_api_msg; #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 */ -- cgit 1.2.3-korg