diff options
author | Damjan Marion <damarion@cisco.com> | 2022-05-18 22:16:11 +0200 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2022-05-19 18:32:23 +0200 |
commit | cada9eb7894117db898f7c4def92cba5511baa4f (patch) | |
tree | 4cf552e2ad9e67b8bbc144eb5c6cb9aad0a8424b /src/plugins/tracedump/tracedump.c | |
parent | bf95e3efde3402cf2f7beaf6d70433646cc68280 (diff) |
api: refactor api data storage
single struct to hold all api handler, flags, etc.
Provide functions to toggle flags instead of writing directly to
internal data.
Type: refactor
Change-Id: I4730d7290e57489de8eda34a72211527e015b721
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/tracedump/tracedump.c')
-rw-r--r-- | src/plugins/tracedump/tracedump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/tracedump/tracedump.c b/src/plugins/tracedump/tracedump.c index f1073fe247d..17b9a423b53 100644 --- a/src/plugins/tracedump/tracedump.c +++ b/src/plugins/tracedump/tracedump.c @@ -349,7 +349,7 @@ tracedump_init (vlib_main_t * vm) /* Add our API messages to the global name_crc hash table */ tdmp->msg_id_base = setup_message_id_table (); - am->is_mp_safe[tdmp->msg_id_base + VL_API_TRACE_DUMP] = 1; + vl_api_set_msg_thread_safe (am, tdmp->msg_id_base + VL_API_TRACE_DUMP, 1); return error; } |