patch 'net/cnxk: validate RED threshold config' has been queued to stable release 22.11.2
Xueming Li
xuemingl at nvidia.com
Mon Feb 27 07:59:43 CET 2023
Hi,
FYI, your patch has been queued to stable release 22.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 03/01/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging
This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=23cb90427af131777e961f63d715b3c520e9a123
Thanks.
Xueming Li <xuemingl at nvidia.com>
---
>From 23cb90427af131777e961f63d715b3c520e9a123 Mon Sep 17 00:00:00 2001
From: Sunil Kumar Kori <skori at marvell.com>
Date: Mon, 2 Jan 2023 22:13:53 +0530
Subject: [PATCH] net/cnxk: validate RED threshold config
Cc: Xueming Li <xuemingl at nvidia.com>
[ upstream commit 9fd66d79d3e27dfb28e04d10e0ee63dfc64820c9 ]
Added validation to check minimum and maximum RED threshold
values, passed by user.
Fixes: b7d3a0fe71eb ("net/cnxk: support congestion management operations")
Signed-off-by: Sunil Kumar Kori <skori at marvell.com>
---
drivers/net/cnxk/cnxk_ethdev_cman.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/cnxk/cnxk_ethdev_cman.c b/drivers/net/cnxk/cnxk_ethdev_cman.c
index d5e647c64d..a7ccdfb756 100644
--- a/drivers/net/cnxk/cnxk_ethdev_cman.c
+++ b/drivers/net/cnxk/cnxk_ethdev_cman.c
@@ -68,6 +68,11 @@ nix_cman_config_validate(struct rte_eth_dev *eth_dev, const struct rte_eth_cman_
return -EINVAL;
}
+ if (config->mode_param.red.min_th > config->mode_param.red.max_th) {
+ plt_err("RED minimum threshold must be less or equal to maximum threshold");
+ return -EINVAL;
+ }
+
return 0;
}
--
2.25.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2023-02-27 14:08:43.323543100 +0800
+++ 0076-net-cnxk-validate-RED-threshold-config.patch 2023-02-27 14:08:40.799237000 +0800
@@ -1 +1 @@
-From 9fd66d79d3e27dfb28e04d10e0ee63dfc64820c9 Mon Sep 17 00:00:00 2001
+From 23cb90427af131777e961f63d715b3c520e9a123 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 9fd66d79d3e27dfb28e04d10e0ee63dfc64820c9 ]
@@ -10 +12,0 @@
-CC: stable at dpdk.org
More information about the stable
mailing list