patch 'ethdev: add missing action types to flow conversion' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:04:21 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. 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/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/f52ff30f6867646830e1e74ca759987a374db4ec
Thanks.
Kevin
---
>From f52ff30f6867646830e1e74ca759987a374db4ec Mon Sep 17 00:00:00 2001
From: Anatoly Burakov <anatoly.burakov at intel.com>
Date: Tue, 27 Oct 2026 09:50:10 +0000
Subject: [PATCH] ethdev: add missing action types to flow conversion
[ upstream commit ec7e976928e138f5c88739ac7e56e79036905278 ]
RTE_FLOW_ACTION_TYPE_SHARED, RTE_FLOW_ACTION_TYPE_METER_COLOR and
RTE_FLOW_ACTION_TYPE_SKIP_CMAN were never added to
rte_flow_desc_action[]. The table uses designated initializers, so
these slots are zero filled: their name is NULL and their size is
zero.
As a result, RTE_FLOW_CONV_OP_ACTION_NAME on any of them passes a
NULL source to strlcpy(), and rte_flow_copy() as well as the action
conversion operations reject any action list containing one of them
as an unknown action type.
Add the missing descriptor entries. Preserve the deprecated SHARED
action handle directly, as for INDIRECT, instead of treating it as
configuration data to copy into the destination buffer.
Fixes: 4d9fd85fb545 ("ethdev: add shared actions to flow API")
Fixes: 5f0d54f372f0 ("ethdev: add pre-defined meter policy API")
Fixes: 6807e8b52a18 ("ethdev: skip congestion management configuration")
Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
lib/ethdev/rte_flow.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/ethdev/rte_flow.c b/lib/ethdev/rte_flow.c
index b26999d721..a5f3e2bce0 100644
--- a/lib/ethdev/rte_flow.c
+++ b/lib/ethdev/rte_flow.c
@@ -258,4 +258,6 @@ static const struct rte_flow_desc_data rte_flow_desc_action[] = {
MK_FLOW_ACTION(AGE, sizeof(struct rte_flow_action_age)),
MK_FLOW_ACTION(SAMPLE, sizeof(struct rte_flow_action_sample)),
+ /* Deprecated; handle stored in conf as for INDIRECT. */
+ MK_FLOW_ACTION(SHARED, 0),
MK_FLOW_ACTION(MODIFY_FIELD,
sizeof(struct rte_flow_action_modify_field)),
@@ -268,4 +270,5 @@ static const struct rte_flow_desc_data rte_flow_desc_action[] = {
MK_FLOW_ACTION(INDIRECT, 0),
MK_FLOW_ACTION(CONNTRACK, sizeof(struct rte_flow_action_conntrack)),
+ MK_FLOW_ACTION(METER_COLOR, sizeof(struct rte_flow_action_meter_color)),
MK_FLOW_ACTION(PORT_REPRESENTOR, sizeof(struct rte_flow_action_ethdev)),
MK_FLOW_ACTION(REPRESENTED_PORT, sizeof(struct rte_flow_action_ethdev)),
@@ -273,4 +276,5 @@ static const struct rte_flow_desc_data rte_flow_desc_action[] = {
MK_FLOW_ACTION(SEND_TO_KERNEL, 0),
MK_FLOW_ACTION(QUOTA, sizeof(struct rte_flow_action_quota)),
+ MK_FLOW_ACTION(SKIP_CMAN, 0),
MK_FLOW_ACTION(IPV6_EXT_PUSH, sizeof(struct rte_flow_action_ipv6_ext_push)),
MK_FLOW_ACTION(IPV6_EXT_REMOVE, sizeof(struct rte_flow_action_ipv6_ext_remove)),
@@ -977,5 +981,6 @@ rte_flow_conv_actions(struct rte_flow_action *dst,
src -= num;
for (i = 0; i != num; ++i, ++src) {
- if (src->type == RTE_FLOW_ACTION_TYPE_INDIRECT) {
+ if (src->type == RTE_FLOW_ACTION_TYPE_INDIRECT ||
+ src->type == RTE_FLOW_ACTION_TYPE_SHARED) {
/*
* Indirect action conf fills the indirect action
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:48.662548469 +0000
+++ 0335-ethdev-add-missing-action-types-to-flow-conversion.patch 2026-12-03 12:52:39.253504560 +0000
@@ -1 +1 @@
-From ec7e976928e138f5c88739ac7e56e79036905278 Mon Sep 17 00:00:00 2001
+From f52ff30f6867646830e1e74ca759987a374db4ec Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit ec7e976928e138f5c88739ac7e56e79036905278 ]
+
@@ -24 +25,0 @@
-Cc: stable at dpdk.org
@@ -32 +33 @@
-index 6e544f4bc9..e29bcefab0 100644
+index b26999d721..a5f3e2bce0 100644
@@ -35 +36 @@
-@@ -325,4 +325,6 @@ static const struct rte_flow_desc_data rte_flow_desc_action[] = {
+@@ -258,4 +258,6 @@ static const struct rte_flow_desc_data rte_flow_desc_action[] = {
@@ -42 +43 @@
-@@ -335,4 +337,5 @@ static const struct rte_flow_desc_data rte_flow_desc_action[] = {
+@@ -268,4 +270,5 @@ static const struct rte_flow_desc_data rte_flow_desc_action[] = {
@@ -48 +49 @@
-@@ -340,4 +343,5 @@ static const struct rte_flow_desc_data rte_flow_desc_action[] = {
+@@ -273,4 +276,5 @@ static const struct rte_flow_desc_data rte_flow_desc_action[] = {
@@ -54 +55 @@
-@@ -1044,5 +1048,6 @@ rte_flow_conv_actions(struct rte_flow_action *dst,
+@@ -977,5 +981,6 @@ rte_flow_conv_actions(struct rte_flow_action *dst,
More information about the stable
mailing list