5 #ifndef __INCLUDE_RTE_TABLE_ACTION_H__
6 #define __INCLUDE_RTE_TABLE_ACTION_H__
61 #include <rte_compat.h>
136 #define RTE_TABLE_ACTION_LB_KEY_SIZE_MIN 8
139 #define RTE_TABLE_ACTION_LB_KEY_SIZE_MAX 64
142 #define RTE_TABLE_ACTION_LB_TABLE_SIZE 8
184 #define RTE_TABLE_ACTION_TC_MAX 4
187 #define RTE_TABLE_ACTION_TC_QUEUE_MAX 4
457 #ifndef RTE_TABLE_ACTION_MPLS_LABELS_MAX
458 #define RTE_TABLE_ACTION_MPLS_LABELS_MAX 4
695 #ifndef RTE_TABLE_ACTION_SYM_CRYPTO_IV_SIZE_MAX
696 #define RTE_TABLE_ACTION_SYM_CRYPTO_IV_SIZE_MAX (16)
699 #ifndef RTE_TABLE_ACTION_SYM_CRYPTO_AAD_SIZE_MAX
700 #define RTE_TABLE_ACTION_SYM_CRYPTO_AAD_SIZE_MAX (16)
703 #ifndef RTE_TABLE_ACTION_SYM_CRYPTO_IV_OFFSET
704 #define RTE_TABLE_ACTION_SYM_CRYPTO_IV_OFFSET \
705 (sizeof(struct rte_crypto_op) + sizeof(struct rte_crypto_sym_op))
800 struct rte_table_action_profile;
810 struct rte_table_action_profile * __rte_experimental
821 int __rte_experimental
839 int __rte_experimental
842 void *action_config);
859 int __rte_experimental
865 struct rte_table_action;
882 struct rte_table_action * __rte_experimental
894 int __rte_experimental
907 int __rte_experimental
929 int __rte_experimental
933 void *action_params);
948 int __rte_experimental
967 int __rte_experimental
969 uint32_t meter_profile_id,
983 int __rte_experimental
985 uint32_t meter_profile_id);
1014 int __rte_experimental
1040 int __rte_experimental
1065 int __rte_experimental
1085 int __rte_experimental
1088 uint64_t *timestamp);
struct rte_table_action_pppoe_hdr pppoe
struct rte_table_action_vlo iv_update
rte_table_hash_op_hash f_hash
uint32_t n_subports_per_port
int __rte_experimental rte_table_action_stats_read(struct rte_table_action *action, void *data, struct rte_table_action_stats_counters *stats, int clear)
struct rte_table_action_udp_header udp
struct rte_table_action_mpls_hdr mpls[RTE_TABLE_ACTION_MPLS_LABELS_MAX]
int __rte_experimental rte_table_action_ttl_read(struct rte_table_action *action, void *data, struct rte_table_action_ttl_counters *stats, int clear)
struct rte_table_action_ipv4_header ipv4
#define RTE_TABLE_ACTION_TC_MAX
struct rte_table_action_vlo auth_iv
uint32_t meter_profile_id
int __rte_experimental rte_table_action_free(struct rte_table_action *action)
struct rte_table_action_encap_qinq_params qinq
enum rte_table_action_encap_type type
struct rte_table_action_encap_vlan_params vlan
struct rte_table_action_vlo auth_iv_update
uint32_t out[RTE_TABLE_ACTION_LB_TABLE_SIZE]
struct rte_meter_trtcm_params trtcm
struct rte_table_action_ether_hdr ether
union rte_table_action_nat_params::@217 addr
struct rte_table_action_vlan_hdr vlan
struct rte_table_action_vlo aad
struct rte_table_action_ether_hdr ether
#define RTE_TABLE_ACTION_LB_TABLE_SIZE
struct rte_table_action_profile *__rte_experimental rte_table_action_profile_create(struct rte_table_action_common_config *common)
struct rte_table_action_vlan_hdr svlan
int __rte_experimental rte_table_action_table_params_get(struct rte_table_action *action, struct rte_pipeline_table_params *params)
struct rte_mempool * mp_create
enum rte_table_action_meter_algorithm alg
enum rte_meter_color color
#define RTE_TABLE_ACTION_LB_KEY_SIZE_MAX
struct rte_table_action_dscp_table_entry entry[64]
struct rte_table_action_vlan_hdr vlan
struct rte_table_action_mtr_counters_tc stats[RTE_TABLE_ACTION_TC_MAX]
struct rte_table_action_encap_config::@212::@214 vxlan
int __rte_experimental rte_table_action_profile_free(struct rte_table_action_profile *profile)
int __rte_experimental rte_table_action_meter_read(struct rte_table_action *action, void *data, uint32_t tc_mask, struct rte_table_action_mtr_counters *stats, int clear)
struct rte_table_action_ether_hdr ether
struct rte_table_action_ether_hdr ether
uint64_t(* rte_table_hash_op_hash)(void *key, void *key_mask, uint32_t key_size, uint64_t seed)
struct rte_table_action_vlo aad_update
struct rte_table_action_vlo cipher_iv_update
struct rte_table_action_ipv6_header ipv6
uint8_t key_mask[RTE_TABLE_ACTION_LB_KEY_SIZE_MAX]
struct rte_table_action_encap_ether_params ether
int __rte_experimental rte_table_action_time_read(struct rte_table_action *action, void *data, uint64_t *timestamp)
int __rte_experimental rte_table_action_profile_action_register(struct rte_table_action_profile *profile, enum rte_table_action_type type, void *action_config)
int __rte_experimental rte_table_action_apply(struct rte_table_action *action, void *data, enum rte_table_action_type type, void *action_params)
struct rte_table_action_encap_vxlan_params vxlan
struct rte_table_action_vlan_hdr cvlan
struct rte_cryptodev_sym_session *__rte_experimental rte_table_action_crypto_sym_session_get(struct rte_table_action *action, void *data)
struct rte_table_action_encap_mpls_params mpls
enum rte_table_action_meter_algorithm alg
uint64_t n_bytes[e_RTE_METER_COLORS]
uint32_t n_pipes_per_subport
enum rte_pipeline_action action
struct rte_table_action_mtr_tc_params mtr[RTE_TABLE_ACTION_TC_MAX]
struct rte_table_action_vlo iv
struct rte_table_action_vlo cipher_iv
struct rte_table_action *__rte_experimental rte_table_action_create(struct rte_table_action_profile *profile, uint32_t socket_id)
rte_table_action_encap_type
struct rte_meter_srtcm_params srtcm
#define RTE_TABLE_ACTION_MPLS_LABELS_MAX
rte_table_action_meter_algorithm
enum rte_table_action_policer policer[e_RTE_METER_COLORS]
struct rte_table_action_ether_hdr ether
int __rte_experimental rte_table_action_meter_profile_add(struct rte_table_action *action, uint32_t meter_profile_id, struct rte_table_action_meter_profile *profile)
int __rte_experimental rte_table_action_meter_profile_delete(struct rte_table_action *action, uint32_t meter_profile_id)
struct rte_table_action_encap_pppoe_params pppoe
int __rte_experimental rte_table_action_dscp_table_update(struct rte_table_action *action, uint64_t dscp_mask, struct rte_table_action_dscp_table *table)
struct rte_mempool * mp_init
uint64_t n_packets[e_RTE_METER_COLORS]
struct rte_crypto_sym_xform * xform
int __rte_experimental rte_table_action_profile_freeze(struct rte_table_action_profile *profile)
struct rte_table_action_ether_hdr ether
struct rte_table_action_vxlan_hdr vxlan