patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] net/ice: fix the outer l4 cksum flag when AVX is disabled
@ 2022-05-27  8:09 Wenjing Qiao
  2022-05-29 22:40 ` Zhang, Qi Z
  0 siblings, 1 reply; 2+ messages in thread
From: Wenjing Qiao @ 2022-05-27  8:09 UTC (permalink / raw)
  To: qiming.yang, qi.z.zhang; +Cc: xiao.w.wang, dev, Wenjing Qiao, stable

In scalar datapath, ol_flag shows RTE_MBUF_F_RX_OUTER_L4_CKSUM_UNKNOWN
which is error, therefore fixing this bug.

Fixes: 94005e4640a7 ("net/ice: fix build with 16-byte Rx descriptor")
Cc: stable@dpdk.org

Signed-off-by: Wenjing Qiao <wenjing.qiao@intel.com>
Reported-by: Xiao Wang <xiao.w.wang@intel.com>
---
 drivers/net/ice/ice_rxtx.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c
index 4f218bcd0d..60c8c23c72 100644
--- a/drivers/net/ice/ice_rxtx.c
+++ b/drivers/net/ice/ice_rxtx.c
@@ -1497,7 +1497,9 @@ ice_rxd_error_to_pkt_flags(uint16_t stat_err0)
 		return 0;
 
 	if (likely(!(stat_err0 & ICE_RX_FLEX_ERR0_BITS))) {
-		flags |= (RTE_MBUF_F_RX_IP_CKSUM_GOOD | RTE_MBUF_F_RX_L4_CKSUM_GOOD);
+		flags |= (RTE_MBUF_F_RX_IP_CKSUM_GOOD |
+			  RTE_MBUF_F_RX_L4_CKSUM_GOOD |
+			  RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD);
 		return flags;
 	}
 
-- 
2.25.1


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

* RE: [PATCH] net/ice: fix the outer l4 cksum flag when AVX is disabled
  2022-05-27  8:09 [PATCH] net/ice: fix the outer l4 cksum flag when AVX is disabled Wenjing Qiao
@ 2022-05-29 22:40 ` Zhang, Qi Z
  0 siblings, 0 replies; 2+ messages in thread
From: Zhang, Qi Z @ 2022-05-29 22:40 UTC (permalink / raw)
  To: Qiao, Wenjing, Yang, Qiming; +Cc: Wang, Xiao W, dev, stable



> -----Original Message-----
> From: Qiao, Wenjing <wenjing.qiao@intel.com>
> Sent: Friday, May 27, 2022 4:10 PM
> To: Yang, Qiming <qiming.yang@intel.com>; Zhang, Qi Z
> <qi.z.zhang@intel.com>
> Cc: Wang, Xiao W <xiao.w.wang@intel.com>; dev@dpdk.org; Qiao, Wenjing
> <wenjing.qiao@intel.com>; stable@dpdk.org
> Subject: [PATCH] net/ice: fix the outer l4 cksum flag when AVX is disabled
> 
> In scalar datapath, ol_flag shows
> RTE_MBUF_F_RX_OUTER_L4_CKSUM_UNKNOWN
> which is error, therefore fixing this bug.
> 
> Fixes: 94005e4640a7 ("net/ice: fix build with 16-byte Rx descriptor")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Wenjing Qiao <wenjing.qiao@intel.com>
> Reported-by: Xiao Wang <xiao.w.wang@intel.com>

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

Applied to dpdk-next-net-intel.

Thanks
Qi


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

end of thread, other threads:[~2022-05-29 22:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-27  8:09 [PATCH] net/ice: fix the outer l4 cksum flag when AVX is disabled Wenjing Qiao
2022-05-29 22:40 ` Zhang, Qi Z

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