From: Thierry Herbelot Date: Mon, 24 May 2021 11:22:38 +0000 (+0200) Subject: net/sfc: fix outer L4 checksum Rx X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=13fe18b3483775c2b052f4d2af330d2ef91a0835;p=dpdk.git net/sfc: fix outer L4 checksum Rx Do not return "GOOD" flag if the status was bad. Fixes: 9e6e7f479ae9b ("net/sfc: support Rx checksum offload for EF100") Cc: stable@dpdk.org Signed-off-by: Thierry Herbelot Reviewed-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/sfc_ef100_rx.c b/drivers/net/sfc/sfc_ef100_rx.c index 8cde24c585..8b90463533 100644 --- a/drivers/net/sfc/sfc_ef100_rx.c +++ b/drivers/net/sfc/sfc_ef100_rx.c @@ -211,7 +211,7 @@ sfc_ef100_rx_tun_outer_l4_csum(const efx_word_t class) return EFX_WORD_FIELD(class, ESF_GZ_RX_PREFIX_HCLASS_TUN_OUTER_L4_CSUM) == ESE_GZ_RH_HCLASS_L4_CSUM_GOOD ? - PKT_RX_OUTER_L4_CKSUM_GOOD : PKT_RX_OUTER_L4_CKSUM_GOOD; + PKT_RX_OUTER_L4_CKSUM_GOOD : PKT_RX_OUTER_L4_CKSUM_BAD; } static uint32_t