[PATCH 1/6] ethdev: add insertion by index with pattern
Alexander Kozyrev
akozyrev at nvidia.com
Thu Sep 19 02:48:08 CEST 2024
There are two flow table rules insertion type today:
pattern-based insertion when packets match on the pattern and
index-based insertion when packets always hit at the index.
We need another mode that allows to match on the pattern at
the index: insertion by index with pattern.
Signed-off-by: Alexander Kozyrev <akozyrev at nvidia.com>
---
doc/guides/rel_notes/release_24_11.rst | 4 ++++
lib/ethdev/rte_flow.h | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/doc/guides/rel_notes/release_24_11.rst b/doc/guides/rel_notes/release_24_11.rst
index 0ff70d9057..7056f17f3c 100644
--- a/doc/guides/rel_notes/release_24_11.rst
+++ b/doc/guides/rel_notes/release_24_11.rst
@@ -55,6 +55,10 @@ New Features
Also, make sure to start the actual text at the margin.
=======================================================
+* **Added a new insertion by index with pattern table insertion type.**
+
+ Extended rte_flow_table_insertion_type enum with new
+ RTE_FLOW_TABLE_INSERTION_TYPE_INDEX_WITH_PATTERN type.
Removed Items
-------------
diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h
index f864578f80..6f30dd7ae9 100644
--- a/lib/ethdev/rte_flow.h
+++ b/lib/ethdev/rte_flow.h
@@ -5898,6 +5898,10 @@ enum rte_flow_table_insertion_type {
* Index-based insertion.
*/
RTE_FLOW_TABLE_INSERTION_TYPE_INDEX,
+ /**
+ * Index-based insertion with pattern.
+ */
+ RTE_FLOW_TABLE_INSERTION_TYPE_INDEX_WITH_PATTERN,
};
/**
--
2.18.2
More information about the dev
mailing list