From 58d66743aa2a40d73808eee9dcfec77f78d6e9f3 Mon Sep 17 00:00:00 2001 From: Steven Luong Date: Mon, 19 Oct 2020 17:21:10 -0700 Subject: vmxnet3: vmxnet3_dump is broken control ping id was not set Fixes: gerrit 22396 / I009e806997461ad790f125d6359993862e1c5e5d Type: fix Signed-off-by: Steven Luong Change-Id: I6e96533f150da4bd0e651b5572345246623ae0ad --- src/plugins/vmxnet3/vmxnet3_test.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins') 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; -- cgit 1.2.3-korg