dpdk: resurrect removed code [VPP-1245] 84/11884/3
authorSteven <[email protected]>
Wed, 18 Apr 2018 00:46:15 +0000 (17:46 -0700)
committerDamjan Marion <[email protected]>
Wed, 18 Apr 2018 18:19:39 +0000 (18:19 +0000)
commit774bfc36bb2971687cc775d181ebaf0916803baf
tree8cd8f2fb6825a0d21426d3338a7b65fa3f23c6bd
parentb3caf66be997ef293805c250a48e86f78468200b
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 <[email protected]>
(cherry picked from commit 684d08c7e5378af5310346e9219a79ef1d901084)
src/plugins/dpdk/device/init.c