diff options
author | Steven <sluong@cisco.com> | 2018-09-21 07:55:07 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-21 18:17:12 +0000 |
commit | b7020d666d300843feeac23357bedb0d06152b0e (patch) | |
tree | 85c02733a9e41aae8052c1ae15790ea50d0c2a42 /src/plugins/vmxnet3/cli.c | |
parent | 561f2730e8b137cd4e7132b05dab49f6e768ae23 (diff) |
vmxnet3: Add hardware link status handling
Added an interrupt line for monitoring and notifying hardware link status
Displayed additional information for show hardware for vmxnet3 interface
Fixed possible garbage display on interface name for show vmxnet3
Change-Id: If457bfe7c216287fb3a4e2630f00434d595f387b
Signed-off-by: Steven <sluong@cisco.com>
Diffstat (limited to 'src/plugins/vmxnet3/cli.c')
-rw-r--r-- | src/plugins/vmxnet3/cli.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/vmxnet3/cli.c b/src/plugins/vmxnet3/cli.c index 3a7e5d9ee65..1e4ac4a76f5 100644 --- a/src/plugins/vmxnet3/cli.c +++ b/src/plugins/vmxnet3/cli.c @@ -206,8 +206,9 @@ show_vmxnet3 (vlib_main_t * vm, u32 * hw_if_indices, u8 show_descr) { hi = vnet_get_hw_interface (vnm, hw_if_indices[i]); vd = vec_elt_at_index (vmxm->devices, hi->dev_instance); - vlib_cli_output (vm, "Interface: %s (ifindex %d)", - hi->name, hw_if_indices[i]); + vlib_cli_output (vm, "Interface: %U (ifindex %d)", + format_vnet_hw_if_index_name, vnm, hw_if_indices[i], + hw_if_indices[i]); vlib_cli_output (vm, " Version: %u", vd->version); vlib_cli_output (vm, " PCI Address: %U", format_vlib_pci_addr, &vd->pci_addr); |