summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2020-10-19 17:21:10 -0700
committerDamjan Marion <dmarion@me.com>2020-10-24 09:40:45 +0000
commit58d66743aa2a40d73808eee9dcfec77f78d6e9f3 (patch)
treec015805824933f7db28f19ad85464f849d2384c9 /src/plugins
parentd4e109138279fcfbfce9d82384f0fa53b8f43ae1 (diff)
vmxnet3: vmxnet3_dump is broken
control ping id was not set Fixes: gerrit 22396 / I009e806997461ad790f125d6359993862e1c5e5d Type: fix Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: I6e96533f150da4bd0e651b5572345246623ae0ad
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/vmxnet3/vmxnet3_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/vmxnet3/vmxnet3_test.c b/src/plugins/vmxnet3/vmxnet3_test.c
index fbd675da5de..6fa9373486c 100644
--- a/src/plugins/vmxnet3/vmxnet3_test.c
+++ b/src/plugins/vmxnet3/vmxnet3_test.c
@@ -173,6 +173,9 @@ api_vmxnet3_dump (vat_main_t * vam)
S (mp);
/* Use a control ping for synchronization */
+ if (!vxm->ping_id)
+ vxm->ping_id =
+ vl_msg_api_get_msg_index ((u8 *) (VL_API_CONTROL_PING_CRC));
mp_ping = vl_msg_api_alloc_as_if_client (sizeof (*mp_ping));
mp_ping->_vl_msg_id = htons (vxm->ping_id);
mp_ping->client_index = vam->my_client_index;