From 5910503df7784316356fa1aec825ff758892265d Mon Sep 17 00:00:00 2001 From: root Date: Fri, 5 Jul 2019 14:45:00 +0800 Subject: [PATCH] fix the issue that set the incorrect crc_strip flag. --- lib/ff_dpdk_if.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ff_dpdk_if.c b/lib/ff_dpdk_if.c index 8283a751a..d9ec41e4f 100644 --- a/lib/ff_dpdk_if.c +++ b/lib/ff_dpdk_if.c @@ -582,9 +582,7 @@ init_port_start(void) } /* Enable HW CRC stripping */ - if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_KEEP_CRC) { - port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_KEEP_CRC; - } + port_conf.rxmode.offloads &= ~DEV_RX_OFFLOAD_KEEP_CRC; /* FIXME: Enable TCP LRO ?*/ #if 0