[PATCH v3 1/6] ethdev: add modify IPv4 next protocol field
Viacheslav Ovsiienko
viacheslavo at nvidia.com
Wed Feb 7 13:29:03 CET 2024
Add IPv4 next protocol modify field definition.
Signed-off-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
Acked-by: Ori Kam <orika at nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
doc/guides/rel_notes/release_24_03.rst | 4 ++++
lib/ethdev/rte_flow.h | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/doc/guides/rel_notes/release_24_03.rst b/doc/guides/rel_notes/release_24_03.rst
index 80db117206..99981ae2ea 100644
--- a/doc/guides/rel_notes/release_24_03.rst
+++ b/doc/guides/rel_notes/release_24_03.rst
@@ -65,6 +65,10 @@ New Features
* Added ``RTE_FLOW_ITEM_TYPE_RANDOM`` to match random value.
* Added ``RTE_FLOW_FIELD_RANDOM`` to represent it in field ID struct.
+* **Added new field IDs in the experimental ``enum rte_flow_field_id``:
+
+ * Added ``RTE_FLOW_FIELD_IPV4_PROTO`` to represent it in field ID struct.
+
* ** Support for getting the number of used descriptors of a Tx queue. **
* Added a fath path function ``rte_eth_tx_queue_count`` to get the number of used
diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h
index 09c1b13381..9e76e53905 100644
--- a/lib/ethdev/rte_flow.h
+++ b/lib/ethdev/rte_flow.h
@@ -2421,7 +2421,8 @@ enum rte_flow_field_id {
RTE_FLOW_FIELD_IPV4_IHL, /**< IPv4 IHL. */
RTE_FLOW_FIELD_IPV4_TOTAL_LEN, /**< IPv4 total length. */
RTE_FLOW_FIELD_IPV6_PAYLOAD_LEN,/**< IPv6 payload length. */
- RTE_FLOW_FIELD_RANDOM /**< Random value. */
+ RTE_FLOW_FIELD_RANDOM, /**< Random value. */
+ RTE_FLOW_FIELD_IPV4_PROTO /**< IPv4 next protocol. */
};
/**
--
2.18.1
More information about the dev
mailing list