Skip to content

Commit 778a541

Browse files
Vanshika Shuklaferruhy
authored andcommitted
net/dpaa: fix reallocate mbuf handling
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: [email protected] Signed-off-by: Vanshika Shukla <[email protected]> Acked-by: Hemant Agrawal <[email protected]>
1 parent 5aa8da9 commit 778a541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dpaa/dpaa_rxtx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ reallocate_mbuf(struct qman_fq *txq, struct rte_mbuf *mbuf)
12231223
/* Copy the data */
12241224
data = rte_pktmbuf_append(new_mbufs[0], bytes_to_copy);
12251225

1226-
rte_memcpy((uint8_t *)data, rte_pktmbuf_mtod_offset(mbuf,
1226+
rte_memcpy((uint8_t *)data, rte_pktmbuf_mtod_offset(temp_mbuf,
12271227
void *, offset1), bytes_to_copy);
12281228

12291229
/* Set new offsets and the temp buffers */

0 commit comments

Comments
 (0)