net/ice: fixed CRC strip issue

Message ID 20181225152108.20741-1-qiming.yang@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Qi Zhang
Headers
Series net/ice: fixed CRC strip issue |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/mellanox-Performance-Testing success Performance Testing PASS
ci/intel-Performance-Testing success Performance Testing PASS

Commit Message

Qiming Yang Dec. 25, 2018, 3:21 p.m. UTC
  Fixes: 50370662b727 ("net/ice: support device and queue ops")

Signed-off-by: Qiming Yang <qiming.yang@intel.com>
---
 drivers/net/ice/ice_rxtx.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Qi Zhang Jan. 2, 2019, 3:24 a.m. UTC | #1
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Qiming Yang
> Sent: Tuesday, December 25, 2018 11:21 PM
> To: dev@dpdk.org
> Cc: Yang, Qiming <qiming.yang@intel.com>
> Subject: [dpdk-dev] [PATCH] net/ice: fixed CRC strip issue
> 
> Fixes: 50370662b727 ("net/ice: support device and queue ops")
> 
> Signed-off-by: Qiming Yang <qiming.yang@intel.com>

Acked-by: Qi Zhang <qi.z.zhang@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi
  

Patch

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) {