summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vat/api_format.c1
-rw-r--r--src/vpp/api/custom_dump.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index 690a15fd97e..02e1c8d1517 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -12638,6 +12638,7 @@ api_sw_interface_vhost_user_dump (vat_main_t * vam)
/* Get list of vhost-user interfaces */
M (SW_INTERFACE_VHOST_USER_DUMP, mp);
+ mp->sw_if_index = ntohl (~0);
S (mp);
/* Use a control ping for synchronization */
diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c
index 6e47a79a616..f79f7cc9a7d 100644
--- a/src/vpp/api/custom_dump.c
+++ b/src/vpp/api/custom_dump.c
@@ -1767,6 +1767,7 @@ static void *vl_api_sw_interface_vhost_user_dump_t_print
u8 *s;
s = format (0, "SCRIPT: sw_interface_vhost_user_dump ");
+ s = format (s, "sw_if_index %d ", (mp->sw_if_index));
FINISH;
}