From 774bfc36bb2971687cc775d181ebaf0916803baf Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 17 Apr 2018 17:46:15 -0700 Subject: dpdk: resurrect removed code [VPP-1245] https://gerrit.fd.io/r/#/c/7701/ accidentally removed 3 lines of code in dpdk/device/init.c which were added by https://gerrit.fd.io/r/#/c/7826/ case VNET_DPDK_PMD_VHOST_ETHER: xd->port_type = VNET_DPDK_PORT_TYPE_VHOST_ETHER; break; Those lines were needed to recognize vhost-user interface which is created via vdev command in dpdk and display VhostEthernet. Without them, UnknownEthernet is displayed. Change-Id: I6d7ee6aecc6a415fbb7308595d515649475bcd5f Signed-off-by: Steven (cherry picked from commit 684d08c7e5378af5310346e9219a79ef1d901084) --- src/plugins/dpdk/device/init.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c index 76d122d37d5..33cc4455657 100755 --- a/src/plugins/dpdk/device/init.c +++ b/src/plugins/dpdk/device/init.c @@ -465,6 +465,10 @@ dpdk_lib_init (dpdk_main_t * dm) xd->port_type = VNET_DPDK_PORT_TYPE_VIRTIO_USER; break; + case VNET_DPDK_PMD_VHOST_ETHER: + xd->port_type = VNET_DPDK_PORT_TYPE_VHOST_ETHER; + break; + default: xd->port_type = VNET_DPDK_PORT_TYPE_UNKNOWN; } -- cgit 1.2.3-korg