From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id B314A12A8 for ; Tue, 6 Sep 2016 03:28:02 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP; 05 Sep 2016 18:28:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,289,1470726000"; d="scan'208";a="1046035589" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 05 Sep 2016 18:28:00 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id u861Rxvo007609; Tue, 6 Sep 2016 09:27:59 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id u861RuI0032245; Tue, 6 Sep 2016 09:27:58 +0800 Received: (from xiaowan1@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id u861RuhF032241; Tue, 6 Sep 2016 09:27:56 +0800 From: Xiao Wang To: dev@dpdk.org Cc: jing.d.chen@intel.com, olivier.matz@6wind.com, Xiao Wang Date: Tue, 6 Sep 2016 09:27:28 +0800 Message-Id: <1473125252-32201-2-git-send-email-xiao.w.wang@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1473125252-32201-1-git-send-email-xiao.w.wang@intel.com> References: <1473125252-32201-1-git-send-email-xiao.w.wang@intel.com> Subject: [dpdk-dev] [PATCH v2 1/5] net/fm10k: fix Rx checksum flags X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 01:28:03 -0000 A previous patch removed some necessary lines about Rx checksum offload by mistake, this patch adds them back. Fixes: 6046898f5097 ("net/mbuf: remove unused Rx error flags") Signed-off-by: Xiao Wang --- drivers/net/fm10k/fm10k_rxtx.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/fm10k/fm10k_rxtx.c b/drivers/net/fm10k/fm10k_rxtx.c index 5b2d04b..bf5888b 100644 --- a/drivers/net/fm10k/fm10k_rxtx.c +++ b/drivers/net/fm10k/fm10k_rxtx.c @@ -96,6 +96,16 @@ rx_desc_to_ol_flags(struct rte_mbuf *m, const union fm10k_rx_desc *d) if (d->w.pkt_info & FM10K_RXD_RSSTYPE_MASK) m->ol_flags |= PKT_RX_RSS_HASH; + + if (unlikely((d->d.staterr & + (FM10K_RXD_STATUS_IPCS | FM10K_RXD_STATUS_IPE)) == + (FM10K_RXD_STATUS_IPCS | FM10K_RXD_STATUS_IPE))) + m->ol_flags |= PKT_RX_IP_CKSUM_BAD; + + if (unlikely((d->d.staterr & + (FM10K_RXD_STATUS_L4CS | FM10K_RXD_STATUS_L4E)) == + (FM10K_RXD_STATUS_L4CS | FM10K_RXD_STATUS_L4E))) + m->ol_flags |= PKT_RX_L4_CKSUM_BAD; } uint16_t -- 1.9.3