diff options
author | Vladislav Grishenko <themiron@yandex-team.ru> | 2021-07-28 23:33:00 +0500 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2024-06-24 01:26:55 +0000 |
commit | f876b69537cd860abcaa2ccedbfe4decdada8c12 (patch) | |
tree | 21584d70ff406ed8bc3c21b4247c5fe171fccd23 /src | |
parent | 5eaa15dd0e870db9f83d3b01afed82864656d4c8 (diff) |
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 <themiron@yandex-team.ru>
Change-Id: I9c35400bdef9fb08e81d859c8f2e3bdaa5468f4b
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/ip/ip_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |