diff options
author | Mohammed Hawari <mhawari@cisco.com> | 2017-05-17 15:52:02 +0200 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-05-23 09:52:55 +0000 |
commit | 5c89c420861ab938151f0bb0a298bb04d590ff2b (patch) | |
tree | 67905cba518eda2682544f7711cc80412ee08f01 /src/plugins/dpdk/device/init.c | |
parent | 8142499cd1cb3b8d0168d0e6cf5309c5b4813cc4 (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/init.c')
-rwxr-xr-x | src/plugins/dpdk/device/init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c index a972394c374..90968075c0b 100755 --- a/src/plugins/dpdk/device/init.c +++ b/src/plugins/dpdk/device/init.c @@ -410,6 +410,10 @@ dpdk_lib_init (dpdk_main_t * dm) xd->port_id = bond_ether_port_id++; break; + case VNET_DPDK_PMD_VIRTIO_USER: + xd->port_type = VNET_DPDK_PORT_TYPE_VIRTIO_USER; + break; + default: xd->port_type = VNET_DPDK_PORT_TYPE_UNKNOWN; } |