git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6496922
)
net/hns3: add check for deferred start queue when rollback
author
Huisong Li
<lihuisong@huawei.com>
Wed, 1 Jun 2022 03:52:41 +0000
(11:52 +0800)
committer
Andrew Rybchenko
<andrew.rybchenko@oktetlabs.ru>
Thu, 9 Jun 2022 08:56:52 +0000
(10:56 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/net/hns3/hns3_rxtx.c
b/drivers/net/hns3/hns3_rxtx.c
index
0c91e47
..
1c9648b
100644
(file)
--- a/
drivers/net/hns3/hns3_rxtx.c
+++ b/
drivers/net/hns3/hns3_rxtx.c
@@
-1199,6
+1199,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);
}