patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] net/i40e: fix Rx checksum flag
@ 2017-01-19  5:39 Xiao Wang
  2017-01-20 18:41 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Xiao Wang @ 2017-01-19  5:39 UTC (permalink / raw)
  To: jingjing.wu; +Cc: dev, yuanhan.liu, stable, Xiao Wang

When no error reported in Rx descriptor, we should set CKSUM_GOOD flag
before return.

Fixes: b704f9071b09 ("net/i40e: implement new Rx checksum flag")

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
CC: stable@dpdk.org
---
 drivers/net/i40e/i40e_rxtx.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c
index 1c9a6c8..22809fa 100644
--- a/drivers/net/i40e/i40e_rxtx.c
+++ b/drivers/net/i40e/i40e_rxtx.c
@@ -151,8 +151,11 @@ static uint16_t i40e_xmit_pkts_simple(void *tx_queue,
 	uint64_t error_bits = (qword >> I40E_RXD_QW1_ERROR_SHIFT);
 
 #define I40E_RX_ERR_BITS 0x3f
-	if (likely((error_bits & I40E_RX_ERR_BITS) == 0))
+	if (likely((error_bits & I40E_RX_ERR_BITS) == 0)) {
+		flags |= (PKT_RX_IP_CKSUM_GOOD | PKT_RX_L4_CKSUM_GOOD);
 		return flags;
+	}
+
 	if (unlikely(error_bits & (1 << I40E_RX_DESC_ERROR_IPE_SHIFT)))
 		flags |= PKT_RX_IP_CKSUM_BAD;
 	else
-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-stable] [PATCH] net/i40e: fix Rx checksum flag
  2017-01-19  5:39 [dpdk-stable] [PATCH] net/i40e: fix Rx checksum flag Xiao Wang
@ 2017-01-20 18:41 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2017-01-20 18:41 UTC (permalink / raw)
  To: Xiao Wang, jingjing.wu; +Cc: dev, yuanhan.liu, stable

On 1/19/2017 5:39 AM, Xiao Wang wrote:
> When no error reported in Rx descriptor, we should set CKSUM_GOOD flag
> before return.
> 
> Fixes: b704f9071b09 ("net/i40e: implement new Rx checksum flag")
CC: stable@dpdk.org

> 
> Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-20 18:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-19  5:39 [dpdk-stable] [PATCH] net/i40e: fix Rx checksum flag Xiao Wang
2017-01-20 18:41 ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).