Skip to content

Commit

Permalink
net/ice: fix outer L4 checksum in scalar Rx
Browse files Browse the repository at this point in the history
[ upstream commit 23e35ac ]

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

Fixes: 94005e4 ("net/ice: fix build with 16-byte Rx descriptor")

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>
  • Loading branch information
Qiao-Intel authored and steevenlee committed Jun 20, 2022
1 parent 2d9b2c2 commit 4d11ba7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/ice/ice_rxtx.c
Expand Up @@ -1446,7 +1446,9 @@ ice_rxd_error_to_pkt_flags(uint16_t stat_err0)
return 0;

if (likely(!(stat_err0 & ICE_RX_FLEX_ERR0_BITS))) {
flags |= (PKT_RX_IP_CKSUM_GOOD | PKT_RX_L4_CKSUM_GOOD);
flags |= (PKT_RX_IP_CKSUM_GOOD |
PKT_RX_L4_CKSUM_GOOD |
PKT_RX_OUTER_L4_CKSUM_GOOD);
return flags;
}

Expand Down

0 comments on commit 4d11ba7

Please sign in to comment.