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
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")
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>
  • Loading branch information
Qiao-Intel authored and qzhan16 committed May 29, 2022
1 parent 1c735a5 commit 23e35ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/ice/ice_rxtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 23e35ac

Please sign in to comment.