diff options
| author | Suanming Mou <[email protected]> | 2024-02-06 10:06:22 +0800 |
|---|---|---|
| committer | Ferruh Yigit <[email protected]> | 2024-02-06 22:21:51 +0100 |
| commit | 77edfda9fe1ba54d997ebdfa8417cca087d691a6 (patch) | |
| tree | 4598f5cfc59f6c701d4f551b1c7a0a72155b7fac /lib/ethdev | |
| parent | ba6a168a06581b5b3d523f984722a3e5f65bbb82 (diff) | |
ethdev: rename flow field data structure
Current rte_flow_action_modify_data struct describes the pkt
field perfectly and is used only in action.
It is planned to be used for item as well. This commit renames
it to "rte_flow_field_data" making it compatible to be used by item.
Signed-off-by: Suanming Mou <[email protected]>
Acked-by: Ori Kam <[email protected]>
Acked-by: Andrew Rybchenko <[email protected]>
Acked-by: Ferruh Yigit <[email protected]>
Diffstat (limited to 'lib/ethdev')
| -rw-r--r-- | lib/ethdev/rte_flow.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index 160fceead5..4482f2bf7b 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -3913,7 +3913,7 @@ struct rte_flow_action_ethdev { }; /** - * Field IDs for MODIFY_FIELD action. + * Packet header field IDs, used by RTE_FLOW_ACTION_TYPE_MODIFY_FIELD. */ enum rte_flow_field_id { RTE_FLOW_FIELD_START = 0, /**< Start of a packet. */ @@ -3967,9 +3967,9 @@ enum rte_flow_field_id { * @warning * @b EXPERIMENTAL: this structure may change without prior notice * - * Field description for MODIFY_FIELD action. + * Packet header field descriptions, used by RTE_FLOW_ACTION_TYPE_MODIFY_FIELD. */ -struct rte_flow_action_modify_data { +struct rte_flow_field_data { enum rte_flow_field_id field; /**< Field or memory type ID. */ union { struct { @@ -4078,8 +4078,8 @@ enum rte_flow_modify_op { */ struct rte_flow_action_modify_field { enum rte_flow_modify_op operation; /**< Operation to perform. */ - struct rte_flow_action_modify_data dst; /**< Destination field. */ - struct rte_flow_action_modify_data src; /**< Source field. */ + struct rte_flow_field_data dst; /**< Destination field. */ + struct rte_flow_field_data src; /**< Source field. */ uint32_t width; /**< Number of bits to use from a source field. */ }; |
