[dpdk-stable] patch 'net/tap: fix interrupt vector array size' has been queued to stable release 20.11.2

Xueming Li xuemingl at nvidia.com
Sat Jun 12 01:01:57 CEST 2021


Hi,

FYI, your patch has been queued to stable release 20.11.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/14/21. 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.

Queued patches are on a temporary branch at:
https://github.com/steevenlee/dpdk

This queued commit can be viewed at:
https://github.com/steevenlee/dpdk/commit/58155c9ecf43f1774cbedc0e04b1739b2101065e

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From 58155c9ecf43f1774cbedc0e04b1739b2101065e Mon Sep 17 00:00:00 2001
From: Chengchang Tang <tangchengchang at huawei.com>
Date: Thu, 22 Apr 2021 19:27:14 +0800
Subject: [PATCH] net/tap: fix interrupt vector array size
Cc: Luca Boccassi <bluca at debian.org>

[ upstream commit 2ce7bc96344542f8d3e89b41bbaaafb12e1d9f72 ]

The size of the current interrupt vector array is fixed to an integer.

This patch will create an interrupt vector array based on the number
of rxqs.

Fixes: 4870a8cdd968 ("net/tap: support Rx interrupt")

Signed-off-by: Chengchang Tang <tangchengchang at huawei.com>
Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
---
 drivers/net/tap/tap_intr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/tap/tap_intr.c b/drivers/net/tap/tap_intr.c
index 5cf4f173a0..1cacc15d9f 100644
--- a/drivers/net/tap/tap_intr.c
+++ b/drivers/net/tap/tap_intr.c
@@ -59,7 +59,7 @@ tap_rx_intr_vec_install(struct rte_eth_dev *dev)
 
 	if (!dev->data->dev_conf.intr_conf.rxq)
 		return 0;
-	intr_handle->intr_vec = malloc(sizeof(intr_handle->intr_vec[rxqs_n]));
+	intr_handle->intr_vec = malloc(sizeof(int) * rxqs_n);
 	if (intr_handle->intr_vec == NULL) {
 		rte_errno = ENOMEM;
 		TAP_LOG(ERR,
-- 
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-06-12 06:53:57.296608900 +0800
+++ 0023-net-tap-fix-interrupt-vector-array-size.patch	2021-06-12 06:53:56.110000000 +0800
@@ -1 +1 @@
-From 2ce7bc96344542f8d3e89b41bbaaafb12e1d9f72 Mon Sep 17 00:00:00 2001
+From 58155c9ecf43f1774cbedc0e04b1739b2101065e Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Luca Boccassi <bluca at debian.org>
+
+[ upstream commit 2ce7bc96344542f8d3e89b41bbaaafb12e1d9f72 ]
@@ -12 +14,0 @@
-Cc: stable at dpdk.org


More information about the stable mailing list