From adcf45217d08d66d9c85dbada54c6f1f401c7ef2 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 22 Aug 2017 13:51:31 +0200 Subject: dpdk: fix Cavium ThunderX support Change-Id: Id5812448917ce52984d5a778d5b304c448a752e7 Signed-off-by: Damjan Marion --- src/plugins/dpdk/device/format.c | 4 ++++ src/plugins/dpdk/device/init.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/plugins/dpdk/device/format.c b/src/plugins/dpdk/device/format.c index 403d7204d25..cfe8851f0f9 100644 --- a/src/plugins/dpdk/device/format.c +++ b/src/plugins/dpdk/device/format.c @@ -314,6 +314,10 @@ format_dpdk_device_type (u8 * s, va_list * args) dev_type = "Virtio User"; break; + case VNET_DPDK_PMD_THUNDERX: + dev_type = "Cavium ThunderX"; + break; + default: case VNET_DPDK_PMD_UNKNOWN: dev_type = "### UNKNOWN ###"; diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c index 8a7080352e7..c6c9ee3469c 100755 --- a/src/plugins/dpdk/device/init.c +++ b/src/plugins/dpdk/device/init.c @@ -372,6 +372,7 @@ dpdk_lib_init (dpdk_main_t * dm) case VNET_DPDK_PMD_THUNDERX: xd->port_type = VNET_DPDK_PORT_TYPE_ETH_VF; + xd->port_conf.rxmode.hw_strip_crc = 1; break; case VNET_DPDK_PMD_DPAA2: -- cgit 1.2.3-korg