sync patches from 22.07 for hns3, dma and testpmd etc. Signed-off-by: Dongdong Liu <liudongdong3@huawei.com> (cherry picked from commit 7beb6a72fff2920a2d993030b0b02822249707fb)
33 lines
950 B
Diff
33 lines
950 B
Diff
From 256f7ae943d4c15cca9cdf11ce84d4c8b536ad20 Mon Sep 17 00:00:00 2001
|
|
From: Huisong Li <lihuisong@huawei.com>
|
|
Date: Wed, 1 Jun 2022 11:52:41 +0800
|
|
Subject: [PATCH 109/122] net/hns3: add check for deferred start queue when
|
|
rollback
|
|
|
|
Driver doesn't allocate mbufs for the deferred start queues, so no need to
|
|
free it when rollback.
|
|
|
|
Signed-off-by: Huisong Li <lihuisong@huawei.com>
|
|
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
|
|
---
|
|
drivers/net/hns3/hns3_rxtx.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns3_rxtx.c
|
|
index d3fa4889d2..a9b997d32e 100644
|
|
--- a/drivers/net/hns3/hns3_rxtx.c
|
|
+++ b/drivers/net/hns3/hns3_rxtx.c
|
|
@@ -1202,6 +1202,9 @@ hns3_init_rx_queues(struct hns3_adapter *hns)
|
|
out:
|
|
for (j = 0; j < i; j++) {
|
|
rxq = (struct hns3_rx_queue *)hw->data->rx_queues[j];
|
|
+ if (rxq->rx_deferred_start)
|
|
+ continue;
|
|
+
|
|
hns3_rx_queue_release_mbufs(rxq);
|
|
}
|
|
|
|
--
|
|
2.22.0
|
|
|