From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 73DCD1B3A6 for ; Tue, 25 Dec 2018 08:55:10 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Dec 2018 23:55:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,395,1539673200"; d="scan'208";a="304861282" Received: from dpdk-qiming2.sh.intel.com ([10.67.119.132]) by fmsmga006.fm.intel.com with ESMTP; 24 Dec 2018 23:55:08 -0800 From: Qiming Yang To: dev@dpdk.org Cc: Qiming Yang Date: Tue, 25 Dec 2018 23:21:08 +0800 Message-Id: <20181225152108.20741-1-qiming.yang@intel.com> X-Mailer: git-send-email 2.9.5 Subject: [dpdk-dev] [PATCH] net/ice: fixed CRC strip issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2018 07:55:10 -0000 Fixes: 50370662b727 ("net/ice: support device and queue ops") Signed-off-by: Qiming Yang --- drivers/net/ice/ice_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index 78e40fe..c794ee8 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) { -- 2.9.5