Skip to content

Commit

Permalink
net/dpaa: fix reallocate mbuf handling
Browse files Browse the repository at this point in the history
This patch fixes the bug in the reallocate_mbuf code
handling. The source location is corrected when copying
the data in the new mbuf.

Fixes: f8c7a17 ("net/dpaa: support Tx scatter gather for non-DPAA buffer")
Cc: stable@dpdk.org

Signed-off-by: Vanshika Shukla <vanshika.shukla@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
  • Loading branch information
Vanshika Shukla authored and ferruhy committed Oct 2, 2024
1 parent a978a7f commit 7594caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/dpaa/dpaa_rxtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ reallocate_mbuf(struct qman_fq *txq, struct rte_mbuf *mbuf)
/* Copy the data */
data = rte_pktmbuf_append(new_mbufs[0], bytes_to_copy);

rte_memcpy((uint8_t *)data, rte_pktmbuf_mtod_offset(mbuf,
rte_memcpy((uint8_t *)data, rte_pktmbuf_mtod_offset(temp_mbuf,
void *, offset1), bytes_to_copy);

/* Set new offsets and the temp buffers */
Expand Down

0 comments on commit 7594caf

Please sign in to comment.