diff options
| author | Alexander Kozyrev <[email protected]> | 2024-09-25 21:05:26 +0300 |
|---|---|---|
| committer | Ferruh Yigit <[email protected]> | 2024-09-27 03:09:26 +0200 |
| commit | 29e7c6263926351be4d402559a49ff346e1bcc42 (patch) | |
| tree | 655161a80bd5bf643d90ddb8d6111699256b84a7 /lib/ethdev | |
| parent | c103585df76017fedd5b0ea2f4769fb9ee42f31f (diff) | |
ethdev: add flow rule insertion mode by index with pattern
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.
testpmd example:
flow template_table 0 create table_id 2 group 13 priority 0
insertion_type index_with_pattern ingress rules_number 64
pattern_template 2 actions_template 2
Signed-off-by: Alexander Kozyrev <[email protected]>
Acked-by: Ori Kam <[email protected]>
Diffstat (limited to 'lib/ethdev')
| -rw-r--r-- | lib/ethdev/rte_flow.h | 4 |
1 files changed, 4 insertions, 0 deletions
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, }; /** |
