Skip to content

Commit

Permalink
net/sfc: fix outer L4 checksum Rx
Browse files Browse the repository at this point in the history
[ upstream commit 13fe18b ]

Do not return "GOOD" flag if the status was bad.

Fixes: 9e6e7f4 ("net/sfc: support Rx checksum offload for EF100")

Signed-off-by: Thierry Herbelot <thierry.herbelot@6wind.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
  • Loading branch information
herbelot authored and bluca committed Jul 12, 2021
1 parent b0d9d06 commit 5a42fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/sfc/sfc_ef100_rx.c
Expand Up @@ -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
Expand Down

0 comments on commit 5a42fb0

Please sign in to comment.