summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device/format.c
diff options
context:
space:
mode:
authorMohammed Hawari <mhawari@cisco.com>2017-05-17 15:52:02 +0200
committerDamjan Marion <dmarion.lists@gmail.com>2017-05-23 09:52:55 +0000
commit5c89c420861ab938151f0bb0a298bb04d590ff2b (patch)
tree67905cba518eda2682544f7711cc80412ee08f01 /src/plugins/dpdk/device/format.c
parent8142499cd1cb3b8d0168d0e6cf5309c5b4813cc4 (diff)
Added support for Virtio-user interfaces by means of a new VNET_DPDK_PORT_TYPE.
Change-Id: I101e32cee8d9de51227b39ec2639c9fb44da1e6c Signed-off-by: Mohammed Hawari <mhawari@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device/format.c')
-rw-r--r--src/plugins/dpdk/device/format.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/format.c b/src/plugins/dpdk/device/format.c
index 8fe668918e7..c4ddbe24375 100644
--- a/src/plugins/dpdk/device/format.c
+++ b/src/plugins/dpdk/device/format.c
@@ -205,6 +205,10 @@ format_dpdk_device_name (u8 * s, va_list * args)
rte_eth_dev_info_get (i, &dev_info);
return format (s, "af_packet%d", dm->devices[i].port_id);
+ case VNET_DPDK_PORT_TYPE_VIRTIO_USER:
+ device_name = "VirtioUser";
+ break;
+
default:
case VNET_DPDK_PORT_TYPE_UNKNOWN:
device_name = "UnknownEthernet";
@@ -302,6 +306,10 @@ format_dpdk_device_type (u8 * s, va_list * args)
dev_type = "NXP DPAA2 Mac";
break;
+ case VNET_DPDK_PMD_VIRTIO_USER:
+ dev_type = "Virtio User";
+ break;
+
default:
case VNET_DPDK_PMD_UNKNOWN:
dev_type = "### UNKNOWN ###";