[03/10] net/cnxk: fix extbuf handling for multisegment packet
Checks
Commit Message
From: Rakesh Kudurumalla <rkudurumalla@marvell.com>
Avoid double free of extbuf when during TX path in
multisegmented packet with extbuf as one of segment.
Fixes: dd9446991212 ("net/cnxk: add transmit completion handler")
Cc: stable@dpdk.org
Signed-off-by: Rakesh Kudurumalla <rkudurumalla@marvell.com>
---
drivers/net/cnxk/cn9k_tx.h | 1 +
1 file changed, 1 insertion(+)
@@ -117,6 +117,7 @@ cn9k_nix_prefree_seg(struct rte_mbuf *m, struct rte_mbuf **extm, struct cn9k_eth
send_hdr->w1.sqe_id = sqe_id &
txq->tx_compl.nb_desc_mask;
txq->tx_compl.ptr[send_hdr->w1.sqe_id] = m;
+ m->next = NULL;
}
return 1;
} else {