dpdk: fix pmd device type when using netvsc or failsafe 29/15729/2
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 5 Nov 2018 19:32:31 +0000 (11:32 -0800)
committerDamjan Marion <dmarion@me.com>
Tue, 6 Nov 2018 11:51:39 +0000 (11:51 +0000)
commitef101310f4068abc61d43c1b08165c7a2018132d
treecd303d73f473c141978633db285722138e41d2b2
parent9ece3c03133309dda1f7f7f292bd071fa1ccb0f1
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>
src/plugins/dpdk/device/format.c