[PATCH 5/6] net/cnxk: update frag offset calculation
Rahul Bhansali
rbhansali at marvell.com
Mon May 19 14:54:23 CEST 2025
Update frag offset calculation based on CSR change.
Signed-off-by: Rahul Bhansali <rbhansali at marvell.com>
---
drivers/net/cnxk/cn20k_rx.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/cnxk/cn20k_rx.h b/drivers/net/cnxk/cn20k_rx.h
index 09042e384d..5682631815 100644
--- a/drivers/net/cnxk/cn20k_rx.h
+++ b/drivers/net/cnxk/cn20k_rx.h
@@ -337,7 +337,7 @@ nix_cqe_xtract_mseg(const union nix_rx_parse_u *rx, struct rte_mbuf *mbuf, uint6
cq_w5 = *((const uint64_t *)rx + 4);
len = rlen + ((cq_w5 >> 16) & 0xFF) - (cq_w5 & 0xFF);
num_frags = hdr->w0.num_frags;
- sg_base = cpth + (offset ? (offset << 3) : 256);
+ sg_base = cpth + (offset ? (offset << 5) : 256);
finfo = (const struct cpt_frag_info_s *)sg_base;
sg_base += num_frags ? (num_frags > 4 ? 32 : 16) : 0;
sg = *(uint64_t *)sg_base;
--
2.25.1
More information about the dev
mailing list