[dpdk-stable] patch 'net/hinic: fix Tx mbuf length while copying' has been queued to stable release 19.11.3

luca.boccassi at gmail.com luca.boccassi at gmail.com
Fri May 22 11:39:57 CEST 2020


Hi,

FYI, your patch has been queued to stable release 19.11.3

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 05/24/20. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Thanks.

Luca Boccassi

---
>From 1e2a3beb12595d18270c2a01a54cf3a7c857e6d0 Mon Sep 17 00:00:00 2001
From: Xiaoyun Wang <cloud.wangxiaoyun at huawei.com>
Date: Thu, 14 May 2020 17:29:17 +0800
Subject: [PATCH] net/hinic: fix Tx mbuf length while copying

[ upstream commit ee750eaa1476d55b812673fcfbe6352f67b890b4 ]

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")

Signed-off-by: Xiaoyun Wang <cloud.wangxiaoyun at huawei.com>
---
 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 a919417277..33d8ae2102 100644
--- a/drivers/net/hinic/hinic_pmd_tx.c
+++ b/drivers/net/hinic/hinic_pmd_tx.c
@@ -312,6 +312,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

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-05-22 10:37:39.917042210 +0100
+++ 0018-net-hinic-fix-Tx-mbuf-length-while-copying.patch	2020-05-22 10:37:39.104412284 +0100
@@ -1,13 +1,14 @@
-From ee750eaa1476d55b812673fcfbe6352f67b890b4 Mon Sep 17 00:00:00 2001
+From 1e2a3beb12595d18270c2a01a54cf3a7c857e6d0 Mon Sep 17 00:00:00 2001
 From: Xiaoyun Wang <cloud.wangxiaoyun at huawei.com>
 Date: Thu, 14 May 2020 17:29:17 +0800
 Subject: [PATCH] net/hinic: fix Tx mbuf length while copying
 
+[ upstream commit ee750eaa1476d55b812673fcfbe6352f67b890b4 ]
+
 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 at dpdk.org
 
 Signed-off-by: Xiaoyun Wang <cloud.wangxiaoyun at huawei.com>
 ---
@@ -15,10 +16,10 @@
  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
+index a919417277..33d8ae2102 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,
+@@ -312,6 +312,8 @@ static inline struct rte_mbuf *hinic_copy_tx_mbuf(struct hinic_nic_dev *nic_dev,
  		mbuf = mbuf->next;
  	}
  


More information about the stable mailing list