diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2018-11-05 11:32:31 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-11-06 11:51:39 +0000 |
commit | ef101310f4068abc61d43c1b08165c7a2018132d (patch) | |
tree | cd303d73f473c141978633db285722138e41d2b2 | |
parent | 9ece3c03133309dda1f7f7f292bd071fa1ccb0f1 (diff) |
dpdk: fix pmd device type when using netvsc or failsafe
The pmd device type show with 'show hardware' is wrong if using failsafe
(or netvsc pmd) because the pmd device type should be based of the VPP device
instance, not the DPDK port id.
Fixes: a059a000f81a ("dpdk: Decoupling the meaning of xd->device_index in dpdk_plugin")
Change-Id: I3880fe674731880c5706a21d8ef3ccf8d569d46d
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r-- | src/plugins/dpdk/device/format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/format.c b/src/plugins/dpdk/device/format.c index d7685ebe627..579de9c5601 100644 --- a/src/plugins/dpdk/device/format.c +++ b/src/plugins/dpdk/device/format.c @@ -568,7 +568,7 @@ format_dpdk_device (u8 * s, va_list * args) rte_eth_dev_info_get (xd->port_id, &di); s = format (s, "%U\n%Ucarrier %U", - format_dpdk_device_type, xd->port_id, + format_dpdk_device_type, dev_instance, format_white_space, indent + 2, format_dpdk_link_status, xd); s = format (s, "%Uflags: %U\n", format_white_space, indent + 2, format_dpdk_device_flags, xd); |