diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2017-02-13 14:19:51 +0100 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2017-02-14 06:49:51 +0000 |
commit | 0578cd1c6c03319187147874ac93b714a6e893b8 (patch) | |
tree | 3898ae35fc3063ea0b109192154ef7efc1315419 /src/vnet/devices/virtio/vhost-user.c | |
parent | f95b37eb18e173c50d67eff1999cadc5c8d87dbb (diff) |
Fix is_server flag in vhost dump (VPP-562)
Change-Id: I5b308eb39ae770d58d1498d7fafa49b236b3f534
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/vhost-user.c')
-rw-r--r-- | src/vnet/devices/virtio/vhost-user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/devices/virtio/vhost-user.c b/src/vnet/devices/virtio/vhost-user.c index c627dec2..315daa77 100644 --- a/src/vnet/devices/virtio/vhost-user.c +++ b/src/vnet/devices/virtio/vhost-user.c @@ -2793,6 +2793,7 @@ vhost_user_dump_ifs (vnet_main_t * vnm, vlib_main_t * vm, vuid->virtio_net_hdr_sz = vui->virtio_net_hdr_sz; vuid->features = vui->features; vuid->num_regions = vui->nregions; + vuid->is_server = vui->unix_server_index != ~0; vuid->sock_errno = vui->sock_errno; strncpy ((char *) vuid->sock_filename, (char *) vui->sock_filename, ARRAY_LEN (vuid->sock_filename) - 1); |