Skip to content

Commit

Permalink
net/bnxt: fix mbuf offload flags
Browse files Browse the repository at this point in the history
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: 65d2b05 ("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]>
  • Loading branch information
Kishore Padmanabha authored and ajitkhaparde committed Nov 20, 2024
1 parent f4ccce5 commit 3e9a43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bnxt/bnxt_rxr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */

0 comments on commit 3e9a43b

Please sign in to comment.