From f876b69537cd860abcaa2ccedbfe4decdada8c12 Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Wed, 28 Jul 2021 23:33:00 +0500 Subject: ip: mark IP_ADDRESS_DUMP as mp-safe Since main thread is the only one thread that can modify address hash, avoid barriers while IP_ADDRESS_DUMP api calls. Type: improvement Signed-off-by: Vladislav Grishenko Change-Id: I9c35400bdef9fb08e81d859c8f2e3bdaa5468f4b --- src/vnet/ip/ip_api.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vnet') diff --git a/src/vnet/ip/ip_api.c b/src/vnet/ip/ip_api.c index 644b4988abc..6dd95140f4b 100644 --- a/src/vnet/ip/ip_api.c +++ b/src/vnet/ip/ip_api.c @@ -2128,6 +2128,8 @@ ip_api_hookup (vlib_main_t * vm) am, REPLY_MSG_ID_BASE + VL_API_IP_ROUTE_ADD_DEL_V2, 1); vl_api_set_msg_thread_safe ( am, REPLY_MSG_ID_BASE + VL_API_IP_ROUTE_ADD_DEL_V2_REPLY, 1); + vl_api_set_msg_thread_safe (am, REPLY_MSG_ID_BASE + VL_API_IP_ADDRESS_DUMP, + 1); return 0; } -- cgit 1.2.3-korg