summaryrefslogtreecommitdiffstats
path: root/src/plugins/avf
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2021-04-08 10:17:26 -0700
committerMatthew Smith <mgsmith@netgate.com>2021-04-08 18:51:02 +0000
commit5d46e52fd28ccc52539031bbbe5c67d749116a09 (patch)
tree757bf4628b150241a8dfad9e6516e38f5e99dff4 /src/plugins/avf
parent89ca7df0deb48cf8a9d4e6a68f11a5ad6d6d6787 (diff)
avf: correctly set VL_API_AVF_DELETE is_mp_safe
Need to add msg_id_base with VL_API_AVF_DELETE to properly set the correct is_mp_safe variable. Type: fix Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: I20f6e9441727fb7ffc132965b93c0a90482e1a52
Diffstat (limited to 'src/plugins/avf')
-rw-r--r--src/plugins/avf/avf_api.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/avf/avf_api.c b/src/plugins/avf/avf_api.c
index 504fa31eb3d..883b374331f 100644
--- a/src/plugins/avf/avf_api.c
+++ b/src/plugins/avf/avf_api.c
@@ -93,10 +93,11 @@ avf_plugin_api_hookup (vlib_main_t * vm)
avf_main_t *avm = &avf_main;
api_main_t *am = vlibapi_get_main ();
- am->is_mp_safe[VL_API_AVF_DELETE] = 1;
-
/* ask for a correctly-sized block of API message decode slots */
avm->msg_id_base = setup_message_id_table ();
+
+ am->is_mp_safe[avm->msg_id_base + VL_API_AVF_DELETE] = 1;
+
return 0;
}