dpdk: resurrect removed code [VPP-1245] 60/11860/2
authorSteven <sluong@cisco.com>
Wed, 18 Apr 2018 00:46:15 +0000 (17:46 -0700)
committerDamjan Marion <dmarion.lists@gmail.com>
Wed, 18 Apr 2018 05:18:54 +0000 (05:18 +0000)
commit684d08c7e5378af5310346e9219a79ef1d901084
tree248a393b383bc173a7ae37f9d90f93f79cac90ce
parent8640dbdb7292d8d206aab3a90551d93798c9c50c
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 <sluong@cisco.com>
src/plugins/dpdk/device/init.c