[PATCH 10/11] net/cnxk: mark HW errors as bad checksum
Nithin Dabilpuram
ndabilpuram at marvell.com
Mon Nov 28 10:54:41 CET 2022
From: Pavan Nikhilesh <pbhagavatula at marvell.com>
Mark NIX packet parsing errors due to NPC/NPA errors as bad
packets by setting L3/L4 checksum as BAD in olflags.
Application can decide the fate of these packets.
Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>
---
drivers/net/cnxk/cnxk_lookup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/cnxk/cnxk_lookup.c b/drivers/net/cnxk/cnxk_lookup.c
index f36fb8f27a..e1f69b4f34 100644
--- a/drivers/net/cnxk/cnxk_lookup.c
+++ b/drivers/net/cnxk/cnxk_lookup.c
@@ -286,8 +286,8 @@ nix_create_rx_ol_flags_array(void *mem)
errcode == NIX_RX_PERRCODE_OL3_LEN) {
val |= RTE_MBUF_F_RX_IP_CKSUM_BAD;
} else {
- val |= RTE_MBUF_F_RX_IP_CKSUM_GOOD;
- val |= RTE_MBUF_F_RX_L4_CKSUM_GOOD;
+ val |= RTE_MBUF_F_RX_IP_CKSUM_BAD;
+ val |= RTE_MBUF_F_RX_L4_CKSUM_BAD;
}
break;
}
--
2.25.1
More information about the dev
mailing list