aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2021-03-26 10:08:28 -0700
committerDamjan Marion <dmarion@me.com>2021-04-01 12:45:29 +0000
commite4aa2f7fe8db24e0d61d009f30638bc0f1a7713c (patch)
tree7f752de125fe97ef316a85ae83c304df4b474d62
parent0614c6240b05872565c7e5891fe8c1daea674dba (diff)
lacp: correctly set is_mp_safe for VL_API_SW_INTERFACE_LACP_DUMP
Need to add msg_id_base to the index Type: fix Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: Id7ebf168502e8fd811d8f2f0c5538e69e23242fb
-rw-r--r--src/plugins/lacp/lacp_api.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/lacp/lacp_api.c b/src/plugins/lacp/lacp_api.c
index dbeb14b3245..fce2492be8c 100644
--- a/src/plugins/lacp/lacp_api.c
+++ b/src/plugins/lacp/lacp_api.c
@@ -125,8 +125,7 @@ lacp_plugin_api_hookup (vlib_main_t * vm)
lm->msg_id_base = setup_message_id_table ();
/* Mark these APIs as mp safe */
- am->is_mp_safe[VL_API_SW_INTERFACE_LACP_DUMP] = 1;
- am->is_mp_safe[VL_API_SW_INTERFACE_LACP_DETAILS] = 1;
+ am->is_mp_safe[lm->msg_id_base + VL_API_SW_INTERFACE_LACP_DUMP] = 1;
return 0;
}