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
avf_main_t *avm = &avf_main;
api_main_t *am = vlibapi_get_main ();
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 ();
/* 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;
+