diff mbox series

[v2,6/8] net/dpaa: update checksum for external pool obj

Message ID 1523269371-28799-6-git-send-email-hemant.agrawal@nxp.com
State New
Headers show
Series [v2,1/8] bus/dpaa: fix the resource leak issue | expand

Commit Message

Hemant Agrawal April 9, 2018, 10:22 a.m. UTC
From: Akhil Goyal <akhil.goyal@nxp.com>


Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>

---
 drivers/net/dpaa/dpaa_rxtx.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.7.4
diff mbox series

Patch

diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c
index bdb7f66..1316d2a 100644
--- a/drivers/net/dpaa/dpaa_rxtx.c
+++ b/drivers/net/dpaa/dpaa_rxtx.c
@@ -825,6 +825,8 @@  tx_on_external_pool(struct qman_fq *txq, struct rte_mbuf *mbuf,
 	}
 
 	DPAA_MBUF_TO_CONTIG_FD(dmable_mbuf, fd_arr, dpaa_intf->bp_info->bpid);
+	if (mbuf->ol_flags & DPAA_TX_CKSUM_OFFLOAD_MASK)
+		dpaa_unsegmented_checksum(mbuf, fd_arr);
 
 	return 0;
 }