diff options
author | Damjan Marion <damarion@cisco.com> | 2017-05-15 18:35:37 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2017-05-15 20:24:59 +0000 |
commit | 90b241536653f8acb1401588a2535dead75e5799 (patch) | |
tree | b1319298517bc0ac01ebcef1022372fdd8f76d76 /src/plugins/dpdk/device/init.c | |
parent | ef486b1545d892f9f0e0d35e7e57cb0ca04d7ff7 (diff) |
dpdk: Enable hardware CRC strip for Intel VFs
Change-Id: I60a7795761fe74ae5d57dacd03c343ddb77434d4
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device/init.c')
-rwxr-xr-x | src/plugins/dpdk/device/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c index bcb787c82cf..545a15e802c 100755 --- a/src/plugins/dpdk/device/init.c +++ b/src/plugins/dpdk/device/init.c @@ -360,6 +360,10 @@ dpdk_lib_init (dpdk_main_t * dm) case VNET_DPDK_PMD_IGBVF: case VNET_DPDK_PMD_IXGBEVF: case VNET_DPDK_PMD_I40EVF: + xd->port_type = VNET_DPDK_PORT_TYPE_ETH_VF; + xd->port_conf.rxmode.hw_strip_crc = 1; + break; + case VNET_DPDK_PMD_THUNDERX: xd->port_type = VNET_DPDK_PORT_TYPE_ETH_VF; break; @@ -380,6 +384,7 @@ dpdk_lib_init (dpdk_main_t * dm) /* Intel Red Rock Canyon */ case VNET_DPDK_PMD_FM10K: xd->port_type = VNET_DPDK_PORT_TYPE_ETH_SWITCH; + xd->port_conf.rxmode.hw_strip_crc = 1; break; /* virtio */ |