From ee750eaa1476d55b812673fcfbe6352f67b890b4 Mon Sep 17 00:00:00 2001 From: Xiaoyun Wang Date: Thu, 14 May 2020 17:29:17 +0800 Subject: [PATCH] net/hinic: fix Tx mbuf length while copying When copy a mbuf to a new dst_mbuf, the pkt_len member of dst_mbuf needs to be updated. Fixes: 076221c8fe1d ("net/hinic: add Rx/Tx") Cc: stable@dpdk.org Signed-off-by: Xiaoyun Wang --- drivers/net/hinic/hinic_pmd_tx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/hinic/hinic_pmd_tx.c b/drivers/net/hinic/hinic_pmd_tx.c index 996e0b26ff..bd39f9364f 100644 --- a/drivers/net/hinic/hinic_pmd_tx.c +++ b/drivers/net/hinic/hinic_pmd_tx.c @@ -313,6 +313,8 @@ static inline struct rte_mbuf *hinic_copy_tx_mbuf(struct hinic_nic_dev *nic_dev, mbuf = mbuf->next; } + dst_mbuf->pkt_len = dst_mbuf->data_len; + return dst_mbuf; } -- 2.20.1