From 4a348e86682730a271d6846146d25aaf620e728b Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 25 Nov 2020 17:13:38 +0100 Subject: pci: add PCIe Gen4 link speed Type: improvement Change-Id: Iccf4fabe912ab7ac45b6fc082824a67d4fd9f216 Signed-off-by: Damjan Marion --- src/vlib/pci/pci.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/vlib/pci') diff --git a/src/vlib/pci/pci.c b/src/vlib/pci/pci.c index 2b80533f250..7e96e1f7c6e 100644 --- a/src/vlib/pci/pci.c +++ b/src/vlib/pci/pci.c @@ -83,7 +83,7 @@ show_pci_fn (vlib_main_t * vm, format_unformat_error, input); } - vlib_cli_output (vm, "%-13s%-5s%-12s%-13s%-16s%-32s%s", + vlib_cli_output (vm, "%-13s%-5s%-12s%-14s%-16s%-32s%s", "Address", "Sock", "VID:PID", "Link Speed", "Driver", "Product Name", "Vital Product Data"); @@ -104,7 +104,7 @@ show_pci_fn (vlib_main_t * vm, if (d->numa_node >= 0) s = format (s, " %d", d->numa_node); - vlib_cli_output (vm, "%-13U%-5v%04x:%04x %-13U%-16s%-32v%U", + vlib_cli_output (vm, "%-13U%-5v%04x:%04x %-14U%-16s%-32v%U", format_vlib_pci_addr, addr, s, d->vendor_id, d->device_id, format_vlib_pci_link_speed, d, @@ -164,6 +164,8 @@ format_vlib_pci_link_speed (u8 * s, va_list * va) return format (s, "5.0 GT/s x%u", width); if ((r->link_status & 0xf) == 3) return format (s, "8.0 GT/s x%u", width); + if ((r->link_status & 0xf) == 4) + return format (s, "16.0 GT/s x%u", width); return format (s, "unknown"); } -- cgit 1.2.3-korg