aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-08-22 13:51:31 +0200
committerDave Wallace <dwallacelf@gmail.com>2017-08-22 15:04:39 +0000
commitadcf45217d08d66d9c85dbada54c6f1f401c7ef2 (patch)
tree04bbd3981251ade2e8faf29e593768c31c158b6d /src/plugins
parent6f67049e41406779c61bf55bd6293b9185c23739 (diff)
dpdk: fix Cavium ThunderX support
Change-Id: Id5812448917ce52984d5a778d5b304c448a752e7 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dpdk/device/format.c4
-rwxr-xr-xsrc/plugins/dpdk/device/init.c1
2 files changed, 5 insertions, 0 deletions
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: