diff options
author | Steven <sluong@cisco.com> | 2018-04-17 17:46:15 -0700 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-04-18 18:19:39 +0000 |
commit | 774bfc36bb2971687cc775d181ebaf0916803baf (patch) | |
tree | 8cd8f2fb6825a0d21426d3338a7b65fa3f23c6bd | |
parent | b3caf66be997ef293805c250a48e86f78468200b (diff) |
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>
(cherry picked from commit 684d08c7e5378af5310346e9219a79ef1d901084)
-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 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; } |