diff options
author | Steven <sluong@cisco.com> | 2017-07-27 14:54:44 -0700 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-09-12 11:40:29 +0000 |
commit | 2504ac699e423f1ca840a63247ce55cb27735e0a (patch) | |
tree | 4704f733311ebdcafcd2e382c00a8ab812e37f36 /src/plugins/dpdk/device/format.c | |
parent | 6c333cecd6ff95ea442828cb3ed002d516453875 (diff) |
devices: Display VhostEthernet instead of UnknownEthernet for dpdk net_vhost driver
Added a new macro VNET_DPDK_PORT_TYPE_VHOST_ETHER for dpdk net_vhost driver
to display VhostEthernet instead of UnknownEthernet.
Change-Id: Ie407d83ebbbd60e4d11be79f0ebc44e2867a5f3b
Signed-off-by: Steven <sluong@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device/format.c')
-rw-r--r-- | src/plugins/dpdk/device/format.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/format.c b/src/plugins/dpdk/device/format.c index cfe8851f0f9..21475ac9d82 100644 --- a/src/plugins/dpdk/device/format.c +++ b/src/plugins/dpdk/device/format.c @@ -213,6 +213,10 @@ format_dpdk_device_name (u8 * s, va_list * args) device_name = "VirtioUser"; break; + case VNET_DPDK_PORT_TYPE_VHOST_ETHER: + device_name = "VhostEthernet"; + break; + default: case VNET_DPDK_PORT_TYPE_UNKNOWN: device_name = "UnknownEthernet"; @@ -316,6 +320,9 @@ format_dpdk_device_type (u8 * s, va_list * args) case VNET_DPDK_PMD_THUNDERX: dev_type = "Cavium ThunderX"; + + case VNET_DPDK_PMD_VHOST_ETHER: + dev_type = "VhostEthernet"; break; default: |