Go to the documentation of this file.
563 .classification = 0xffff,
711 .reserved = 0x3fffffff,
712 .offset = 0xffffffff,
748 .src.addr_bytes =
"\xff\xff\xff\xff\xff\xff",
749 .type = RTE_BE16(0x0000),
779 .
tci = RTE_BE16(0x0fff),
780 .inner_type = RTE_BE16(0x0000),
800 .dst_addr = RTE_BE32(0xffffffff),
841 "\xff\xff\xff\xff\xff\xff\xff\xff"
842 "\xff\xff\xff\xff\xff\xff\xff\xff",
844 "\xff\xff\xff\xff\xff\xff\xff\xff"
845 "\xff\xff\xff\xff\xff\xff\xff\xff",
883 .dst_port = RTE_BE16(0xffff),
902 .dst_port = RTE_BE16(0xffff),
921 .dst_port = RTE_BE16(0xffff),
941 .
vni =
"\xff\xff\xff",
994 .
tni =
"\xff\xff\xff",
1088 .
teid = RTE_BE32(0xffffffff),
1105 .
spi = RTE_BE32(0xffffffff),
1129 .
vni =
"\xff\xff\xff",
1149 .
vni =
"\xff\xff\xff",
1175 .spa = RTE_BE32(0xffffffff),
1176 .tha.addr_bytes =
"\xff\xff\xff\xff\xff\xff",
1177 .tpa = RTE_BE32(0xffffffff),
1214 struct rte_ipv6_fragment_ext hdr;
1254 "\xff\xff\xff\xff\xff\xff\xff\xff"
1255 "\xff\xff\xff\xff\xff\xff\xff\xff",
1281 "\xff\xff\xff\xff\xff\xff\xff\xff"
1282 "\xff\xff\xff\xff\xff\xff\xff\xff",
1517 uint32_t reserved:1;
1520 uint32_t reserved1:4;
1522 uint32_t next_proto:8;
1548 uint32_t max_resp_time:8;
1549 uint32_t checksum:16;
1550 uint32_t group_addr;
1556 .group_addr = 0xffffffff,
1570 uint32_t next_hdr:8;
1571 uint32_t payload_len:8;
1572 uint32_t reserved:16;
1603 .seid = RTE_BE64(UINT64_C(0xffffffffffffffff)),
2329 RTE_ETH_HASH_FUNCTION_DEFAULT = 0,
2338 RTE_ETH_HASH_FUNCTION_MAX,
2694 uint8_t ipv6_addr[16];
2792 struct rte_flow_shared_action;
2795 extern int32_t rte_flow_dynf_metadata_offs;
2798 extern uint64_t rte_flow_dynf_metadata_mask;
2801 #define RTE_FLOW_DYNF_METADATA(m) \
2802 RTE_MBUF_DYNFIELD((m), rte_flow_dynf_metadata_offs, uint32_t *)
2805 #define PKT_RX_DYNF_METADATA (rte_flow_dynf_metadata_mask)
2806 #define PKT_TX_DYNF_METADATA (rte_flow_dynf_metadata_mask)
2809 static inline uint32_t
2810 rte_flow_dynf_metadata_get(
struct rte_mbuf *m)
2812 return *RTE_FLOW_DYNF_METADATA(m);
2817 rte_flow_dynf_metadata_set(
struct rte_mbuf *m, uint32_t v)
2819 *RTE_FLOW_DYNF_METADATA(m) = v;
3107 return !!rte_flow_dynf_metadata_mask;
3232 struct rte_flow *flow,
3281 struct rte_flow *flow,
3352 const char *message);
3531 struct rte_flow_shared_action *
3562 struct rte_flow_shared_action *action,
3598 struct rte_flow_shared_action *action,
3630 const struct rte_flow_shared_action *action,
3635 struct rte_flow_tunnel {
3650 uint8_t src_addr[16];
3651 uint8_t dst_addr[16];
3672 #define RTE_FLOW_RESTORE_INFO_TUNNEL (1ULL << 0)
3677 #define RTE_FLOW_RESTORE_INFO_ENCAPSULATED (1ULL << 1)
3682 #define RTE_FLOW_RESTORE_INFO_GROUP_ID (1ULL << 2)
3725 struct rte_flow_tunnel *tunnel,
3727 uint32_t *num_of_actions,
3756 struct rte_flow_tunnel *tunnel,
3758 uint32_t *num_of_items,
3804 uint32_t num_of_actions,
3827 uint32_t num_of_items,
struct rte_flow_item * definition
@ RTE_FLOW_ACTION_TYPE_DEC_TCP_SEQ
@ RTE_FLOW_ACTION_TYPE_PORT_ID
@ RTE_FLOW_ITEM_TYPE_META
@ RTE_FLOW_ERROR_TYPE_ITEM_SPEC
@ RTE_FLOW_ACTION_TYPE_SET_IPV6_DST
@ RTE_FLOW_ACTION_TYPE_SET_TP_DST
@ RTE_FLOW_ITEM_TYPE_SCTP
static const struct rte_flow_item_icmp rte_flow_item_icmp_mask
const struct rte_flow_action * actions_ro
@ RTE_FLOW_CONV_OP_ITEM_NAME
@ RTE_FLOW_ITEM_TYPE_IPV6_EXT
@ RTE_FLOW_ACTION_TYPE_OF_SET_NW_TTL
@ RTE_FLOW_ACTION_TYPE_SET_IPV6_DSCP
@ RTE_FLOW_ACTION_TYPE_OF_POP_MPLS
@ RTE_FLOW_ITEM_TYPE_FUZZY
@ RTE_FLOW_ACTION_TYPE_SET_TAG
@ RTE_FLOW_ITEM_TYPE_E_TAG
@ RTE_FLOW_ACTION_TYPE_SET_IPV4_SRC
int rte_flow_error_set(struct rte_flow_error *error, int code, enum rte_flow_error_type type, const void *cause, const char *message)
@ RTE_FLOW_ERROR_TYPE_ATTR_GROUP
@ RTE_FLOW_ITEM_TYPE_PPPOE_PROTO_ID
@ RTE_FLOW_ERROR_TYPE_ATTR_INGRESS
static const struct rte_flow_item_arp_eth_ipv4 rte_flow_item_arp_eth_ipv4_mask
@ RTE_FLOW_ACTION_TYPE_OF_POP_VLAN
uint32_t sec_since_last_hit
__rte_experimental int rte_flow_shared_action_query(uint16_t port_id, const struct rte_flow_shared_action *action, void *data, struct rte_flow_error *error)
@ RTE_FLOW_ERROR_TYPE_UNSPECIFIED
@ RTE_FLOW_ACTION_TYPE_VXLAN_ENCAP
rte_be16_t rsvd_grp_ecid_b
@ RTE_FLOW_ERROR_TYPE_HANDLE
@ RTE_FLOW_ACTION_TYPE_DEC_TTL
@ RTE_FLOW_ACTION_TYPE_VXLAN_DECAP
static const struct rte_flow_item_tag rte_flow_item_tag_mask
@ RTE_FLOW_ACTION_TYPE_SET_MAC_SRC
@ RTE_FLOW_ITEM_TYPE_ICMP
@ RTE_FLOW_ITEM_TYPE_L2TPV3OIP
rte_be16_t ver_opt_len_o_c_rsvd0
@ RTE_FLOW_ITEM_TYPE_IGMP
@ RTE_FLOW_ACTION_TYPE_SAMPLE
@ RTE_FLOW_ACTION_TYPE_END
static const struct rte_flow_item_sctp rte_flow_item_sctp_mask
@ RTE_FLOW_ITEM_TYPE_ICMP6_ND_NA
static const struct rte_flow_item_vlan rte_flow_item_vlan_mask
struct rte_flow * rte_flow_create(uint16_t port_id, const struct rte_flow_attr *attr, const struct rte_flow_item pattern[], const struct rte_flow_action actions[], struct rte_flow_error *error)
struct rte_flow_item * definition
struct rte_flow_item * items
@ RTE_FLOW_ERROR_TYPE_NONE
@ RTE_FLOW_ERROR_TYPE_ITEM_NUM
@ RTE_FLOW_ACTION_TYPE_OF_PUSH_MPLS
__rte_deprecated size_t rte_flow_copy(struct rte_flow_desc *fd, size_t len, const struct rte_flow_attr *attr, const struct rte_flow_item *items, const struct rte_flow_action *actions)
@ RTE_FLOW_ITEM_TYPE_ECPRI
enum rte_flow_item_type type
static const struct rte_flow_item_pppoe_proto_id rte_flow_item_pppoe_proto_id_mask
static const struct rte_flow_item_vxlan rte_flow_item_vxlan_mask
@ RTE_FLOW_ACTION_TYPE_SECURITY
@ RTE_FLOW_ACTION_TYPE_RAW_ENCAP
@ RTE_FLOW_ACTION_TYPE_SET_MAC_DST
@ RTE_FLOW_ACTION_TYPE_JUMP
enum rte_flow_error_type type
static const struct rte_flow_item_fuzzy rte_flow_item_fuzzy_mask
static const struct rte_flow_item_nvgre rte_flow_item_nvgre_mask
@ RTE_FLOW_ITEM_TYPE_MARK
@ RTE_FLOW_ITEM_TYPE_GTPU
static const struct rte_flow_item_raw rte_flow_item_raw_mask
struct rte_ether_addr dst
int rte_flow_isolate(uint16_t port_id, int set, struct rte_flow_error *error)
@ RTE_FLOW_ITEM_TYPE_IPV4
@ RTE_FLOW_CONV_OP_ACTION
@ RTE_FLOW_ITEM_TYPE_PPPOED
@ RTE_FLOW_ITEM_TYPE_GTPC
static const struct rte_flow_item_icmp6_nd_na rte_flow_item_icmp6_nd_na_mask
@ RTE_FLOW_ERROR_TYPE_ACTION_NUM
@ RTE_FLOW_ACTION_TYPE_METER
__rte_experimental int rte_flow_dynf_metadata_register(void)
@ RTE_FLOW_CONV_OP_ITEM_NAME_PTR
@ RTE_FLOW_ITEM_TYPE_ICMP6
struct rte_ether_addr tha
__rte_experimental int rte_flow_get_aged_flows(uint16_t port_id, void **contexts, uint32_t nb_contexts, struct rte_flow_error *error)
@ RTE_FLOW_ACTION_TYPE_OF_DEC_MPLS_TTL
@ RTE_FLOW_ACTION_TYPE_INC_TCP_ACK
static const struct rte_flow_item_any rte_flow_item_any_mask
@ RTE_FLOW_ITEM_TYPE_GTP_PSC
@ RTE_FLOW_ACTION_TYPE_OF_COPY_TTL_OUT
const struct rte_flow_item * pattern_ro
static const struct rte_flow_item_igmp rte_flow_item_igmp_mask
@ RTE_FLOW_ACTION_TYPE_VF
@ RTE_FLOW_ITEM_TYPE_PORT_ID
@ RTE_FLOW_ACTION_TYPE_NVGRE_DECAP
__rte_experimental int rte_flow_get_restore_info(uint16_t port_id, struct rte_mbuf *m, struct rte_flow_restore_info *info, struct rte_flow_error *error)
static const struct rte_flow_item_udp rte_flow_item_udp_mask
static __rte_experimental int rte_flow_dynf_metadata_avail(void)
struct rte_ether_addr sla
@ RTE_FLOW_ACTION_TYPE_SET_META
static const struct rte_flow_item_mpls rte_flow_item_mpls_mask
static const struct rte_flow_item_ipv6 rte_flow_item_ipv6_mask
@ RTE_FLOW_ITEM_TYPE_GENEVE
static const struct rte_flow_item_mark rte_flow_item_mark_mask
const struct rte_flow_action * actions
struct rte_flow_attr attr
@ RTE_FLOW_ITEM_TYPE_ICMP6_ND_OPT_SLA_ETH
static const struct rte_flow_item_l2tpv3oip rte_flow_item_l2tpv3oip_mask
@ RTE_FLOW_ERROR_TYPE_ATTR_PRIORITY
@ RTE_FLOW_ACTION_TYPE_OF_DEC_NW_TTL
@ RTE_ETH_HASH_FUNCTION_SIMPLE_XOR
__rte_experimental int rte_flow_tunnel_item_release(uint16_t port_id, struct rte_flow_item *items, uint32_t num_of_items, struct rte_flow_error *error)
int rte_flow_query(uint16_t port_id, struct rte_flow *flow, const struct rte_flow_action *action, void *data, struct rte_flow_error *error)
@ RTE_FLOW_ACTION_TYPE_SET_TTL
@ RTE_FLOW_ITEM_TYPE_ICMP6_ND_OPT
static const struct rte_flow_item_port_id rte_flow_item_port_id_mask
static const struct rte_flow_item_ipv4 rte_flow_item_ipv4_mask
@ RTE_FLOW_ACTION_TYPE_INC_TCP_SEQ
@ RTE_FLOW_ITEM_TYPE_GRE_KEY
@ RTE_FLOW_CONV_OP_ACTION_NAME_PTR
@ RTE_FLOW_ACTION_TYPE_OF_COPY_TTL_IN
static const struct rte_flow_item_esp rte_flow_item_esp_mask
@ RTE_FLOW_ACTION_TYPE_COUNT
@ RTE_FLOW_ITEM_TYPE_IPV6
static const struct rte_flow_item_vf rte_flow_item_vf_mask
static const struct rte_flow_item_nsh rte_flow_item_nsh_mask
@ RTE_FLOW_ITEM_TYPE_HIGIG2
struct rte_flow_action * actions
@ RTE_FLOW_ACTION_TYPE_SHARED
static const struct rte_flow_item_meta rte_flow_item_meta_mask
@ RTE_FLOW_ACTION_TYPE_VOID
@ RTE_FLOW_ACTION_TYPE_RAW_DECAP
@ RTE_FLOW_ACTION_TYPE_QUEUE
int rte_flow_validate(uint16_t port_id, const struct rte_flow_attr *attr, const struct rte_flow_item pattern[], const struct rte_flow_action actions[], struct rte_flow_error *error)
rte_be16_t c_k_s_rsvd0_ver
@ RTE_FLOW_ACTION_TYPE_SET_IPV4_DST
struct rte_flow_attr * attr
@ RTE_FLOW_ITEM_TYPE_ICMP6_ND_OPT_TLA_ETH
@ RTE_FLOW_ACTION_TYPE_AGE
@ RTE_FLOW_ERROR_TYPE_ACTION_CONF
const struct rte_flow_attr * attr_ro
static const struct rte_flow_item_pfcp rte_flow_item_pfcp_mask
static const struct rte_flow_item_tcp rte_flow_item_tcp_mask
enum rte_flow_action_type type
static const struct rte_flow_item_icmp6_nd_opt_sla_eth rte_flow_item_icmp6_nd_opt_sla_eth_mask
@ RTE_FLOW_CONV_OP_PATTERN
struct rte_ether_addr src
@ RTE_FLOW_ACTION_TYPE_NVGRE_ENCAP
static const struct rte_flow_item_icmp6_nd_opt rte_flow_item_icmp6_nd_opt_mask
@ RTE_FLOW_ERROR_TYPE_ATTR_EGRESS
@ RTE_FLOW_ERROR_TYPE_ITEM_LAST
@ RTE_FLOW_ITEM_TYPE_PPPOES
@ RTE_FLOW_ITEM_TYPE_VXLAN
@ RTE_FLOW_ITEM_TYPE_MPLS
@ RTE_FLOW_ERROR_TYPE_ITEM
@ RTE_FLOW_ACTION_TYPE_DROP
int rte_flow_destroy(uint16_t port_id, struct rte_flow *flow, struct rte_flow_error *error)
@ RTE_FLOW_ACTION_TYPE_MARK
@ RTE_FLOW_ACTION_TYPE_PF
__rte_experimental int rte_flow_conv(enum rte_flow_conv_op op, void *dst, size_t size, const void *src, struct rte_flow_error *error)
static const struct rte_flow_item_higig2_hdr rte_flow_item_higig2_hdr_mask
@ RTE_FLOW_CONV_OP_ACTIONS
@ RTE_FLOW_ACTION_TYPE_SET_IPV4_DSCP
@ RTE_FLOW_CONV_OP_ACTION_NAME
static const struct rte_flow_item_gre rte_flow_item_gre_mask
static const struct rte_flow_item_vxlan_gpe rte_flow_item_vxlan_gpe_mask
@ RTE_FLOW_ACTION_TYPE_OF_PUSH_VLAN
@ RTE_FLOW_ACTION_TYPE_MAC_SWAP
__rte_experimental int rte_flow_tunnel_match(uint16_t port_id, struct rte_flow_tunnel *tunnel, struct rte_flow_item **items, uint32_t *num_of_items, struct rte_flow_error *error)
@ RTE_FLOW_ACTION_TYPE_PHY_PORT
@ RTE_FLOW_ACTION_TYPE_FLAG
__rte_experimental int rte_flow_tunnel_action_decap_release(uint16_t port_id, struct rte_flow_action *actions, uint32_t num_of_actions, struct rte_flow_error *error)
struct rte_flow_action * actions
static const struct rte_flow_item_geneve rte_flow_item_geneve_mask
__rte_experimental int rte_flow_shared_action_update(uint16_t port_id, struct rte_flow_shared_action *action, const struct rte_flow_action *update, struct rte_flow_error *error)
@ RTE_FLOW_ERROR_TYPE_ATTR
@ RTE_FLOW_ERROR_TYPE_ITEM_MASK
#define RTE_ETHER_ADDR_LEN
@ RTE_FLOW_ITEM_TYPE_VLAN
struct rte_flow_item * pattern
static const struct rte_flow_item_ah rte_flow_item_ah_mask
@ RTE_FLOW_ACTION_TYPE_OF_SET_VLAN_VID
uint32_t sec_since_last_hit_valid
static const struct rte_flow_item_ipv6_ext rte_flow_item_ipv6_ext_mask
@ RTE_FLOW_ACTION_TYPE_SET_TP_SRC
static const struct rte_flow_item_ecpri rte_flow_item_ecpri_mask
@ RTE_FLOW_ITEM_TYPE_INVERT
@ RTE_FLOW_ITEM_TYPE_VOID
__rte_experimental struct rte_flow_shared_action * rte_flow_shared_action_create(uint16_t port_id, const struct rte_flow_shared_action_conf *conf, const struct rte_flow_action *action, struct rte_flow_error *error)
struct rte_flow_tunnel tunnel
__rte_experimental int rte_flow_dev_dump(uint16_t port_id, FILE *file, struct rte_flow_error *error)
static const struct rte_flow_item_e_tag rte_flow_item_e_tag_mask
@ RTE_FLOW_ACTION_TYPE_OF_SET_VLAN_PCP
int rte_flow_flush(uint16_t port_id, struct rte_flow_error *error)
static const struct rte_flow_item_phy_port rte_flow_item_phy_port_mask
@ RTE_FLOW_ITEM_TYPE_IPV6_FRAG_EXT
static const struct rte_flow_item_icmp6_nd_ns rte_flow_item_icmp6_nd_ns_mask
@ RTE_FLOW_ACTION_TYPE_PASSTHRU
@ RTE_FLOW_ITEM_TYPE_PHY_PORT
@ RTE_FLOW_ITEM_TYPE_PFCP
@ RTE_FLOW_ACTION_TYPE_OF_SET_MPLS_TTL
@ RTE_FLOW_ITEM_TYPE_ICMP6_ND_NS
__rte_experimental int rte_flow_tunnel_decap_set(uint16_t port_id, struct rte_flow_tunnel *tunnel, struct rte_flow_action **actions, uint32_t *num_of_actions, struct rte_flow_error *error)
@ RTE_FLOW_ACTION_TYPE_DEC_TCP_ACK
static const struct rte_flow_item_eth rte_flow_item_eth_mask
struct rte_ether_addr sha
uint8_t addr_bytes[RTE_ETHER_ADDR_LEN]
@ RTE_FLOW_ITEM_TYPE_NVGRE
@ RTE_ETH_HASH_FUNCTION_TOEPLITZ
static const struct rte_flow_item_gtp rte_flow_item_gtp_mask
static const struct rte_flow_item_icmp6_nd_opt_tla_eth rte_flow_item_icmp6_nd_opt_tla_eth_mask
@ RTE_FLOW_ERROR_TYPE_ATTR_TRANSFER
@ RTE_FLOW_ITEM_TYPE_VXLAN_GPE
rte_be16_t epcp_edei_in_ecid_b
__rte_experimental int rte_flow_shared_action_destroy(uint16_t port_id, struct rte_flow_shared_action *action, struct rte_flow_error *error)
@ RTE_FLOW_ACTION_TYPE_SET_IPV6_SRC
@ RTE_FLOW_ACTION_TYPE_RSS
struct rte_ether_addr tla
static const struct rte_flow_item_gtp_psc rte_flow_item_gtp_psc_mask
@ RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ
@ RTE_FLOW_ERROR_TYPE_ACTION
@ RTE_FLOW_ITEM_TYPE_ARP_ETH_IPV4
static const struct rte_flow_item_icmp6 rte_flow_item_icmp6_mask