summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKishore Padmanabha <[email protected]>2024-11-18 21:29:21 -0500
committerAjit Khaparde <[email protected]>2024-11-20 13:14:47 -0800
commit4382519bc19ee42644ca47767c26a149b46cdbe1 (patch)
treebad91234dd39532f9dc2160b621cda6670f6ffda
parentf4ccce58c1a33cb41e1e820da504698437987efc (diff)
net/bnxt: fix segmentation faultnext-net-brcm-mainnext-net-brcm-for-next-net
The mbuf offload flags were not reset before the flags were populated with the received packet details. This causes certain applications to act differently on the offload flags. That can cause application to assert at many locations. Fixes: 65d2b0557ba3 ("net/bnxt: support Rx completion v3") Cc: [email protected] Signed-off-by: Kishore Padmanabha <[email protected]> Reviewed-by: Jay Ding <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]>
-rw-r--r--drivers/net/bnxt/bnxt_rxr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnxt/bnxt_rxr.h b/drivers/net/bnxt/bnxt_rxr.h
index 5e5496964f..7357ca4427 100644
--- a/drivers/net/bnxt/bnxt_rxr.h
+++ b/drivers/net/bnxt/bnxt_rxr.h
@@ -535,6 +535,6 @@ bnxt_parse_csum_v3(struct rte_mbuf *mbuf, struct rx_pkt_cmpl_hi *rxcmp1)
uint16_t error_v2 = rte_le_to_cpu_16(v3_cmp->errors_v2);
uint32_t flags2 = rte_le_to_cpu_32(v3_cmp->flags2);
- mbuf->ol_flags |= bnxt_parse_csum_fields_v3(flags2, error_v2);
+ mbuf->ol_flags = bnxt_parse_csum_fields_v3(flags2, error_v2);
}
#endif /* _BNXT_RXR_H_ */