From: Qiming Yang Date: Tue, 25 Dec 2018 15:21:08 +0000 (+0800) Subject: net/ice: fix CRC strip X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=89760a006b826ec3f85f46f2c7a04efe75a8d6fa;p=dpdk.git net/ice: fix CRC strip Fixes: 50370662b727 ("net/ice: support device and queue ops") Signed-off-by: Qiming Yang Acked-by: Qi Zhang --- diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index 78e40fe78a..c794ee861a 100644 --- a/drivers/net/ice/ice_rxtx.c +++ b/drivers/net/ice/ice_rxtx.c @@ -94,6 +94,7 @@ ice_program_hw_rx_queue(struct ice_rx_queue *rxq) /*default use 32 byte descriptor, vlan tag extract to L2TAG2(1st)*/ rx_ctx.l2tsel = 1; rx_ctx.showiv = 0; + rx_ctx.crcstrip = (rxq->crc_len == 0) ? 1 : 0; err = ice_clear_rxq_ctx(hw, rxq->reg_idx); if (err) {