30 #include <rte_higig.h>
537 .classification = 0xffff,
685 .reserved = 0x3fffffff,
686 .offset = 0xffffffff,
720 .src.addr_bytes =
"\xff\xff\xff\xff\xff\xff",
721 .type = RTE_BE16(0x0000),
744 .
tci = RTE_BE16(0x0fff),
745 .inner_type = RTE_BE16(0x0000),
765 .dst_addr = RTE_BE32(0xffffffff),
789 "\xff\xff\xff\xff\xff\xff\xff\xff"
790 "\xff\xff\xff\xff\xff\xff\xff\xff",
792 "\xff\xff\xff\xff\xff\xff\xff\xff"
793 "\xff\xff\xff\xff\xff\xff\xff\xff",
831 .dst_port = RTE_BE16(0xffff),
850 .dst_port = RTE_BE16(0xffff),
869 .dst_port = RTE_BE16(0xffff),
889 .
vni =
"\xff\xff\xff",
942 .
tni =
"\xff\xff\xff",
1036 .
teid = RTE_BE32(0xffffffff),
1053 .
spi = RTE_BE32(0xffffffff),
1077 .
vni =
"\xff\xff\xff",
1097 .
vni =
"\xff\xff\xff",
1123 .spa = RTE_BE32(0xffffffff),
1124 .tha.addr_bytes =
"\xff\xff\xff\xff\xff\xff",
1125 .tpa = RTE_BE32(0xffffffff),
1162 struct rte_ipv6_fragment_ext hdr;
1202 "\xff\xff\xff\xff\xff\xff\xff\xff"
1203 "\xff\xff\xff\xff\xff\xff\xff\xff",
1229 "\xff\xff\xff\xff\xff\xff\xff\xff"
1230 "\xff\xff\xff\xff\xff\xff\xff\xff",
1448 uint32_t reserved:1;
1451 uint32_t reserved1:4;
1453 uint32_t next_proto:8;
1479 uint32_t max_resp_time:8;
1480 uint32_t checksum:16;
1481 uint32_t group_addr;
1487 .group_addr = 0xffffffff,
1501 uint32_t next_hdr:8;
1502 uint32_t payload_len:8;
1503 uint32_t reserved:16;
2186 RTE_ETH_HASH_FUNCTION_DEFAULT = 0,
2195 RTE_ETH_HASH_FUNCTION_MAX,
2546 uint8_t ipv6_addr[16];
2633 extern int32_t rte_flow_dynf_metadata_offs;
2636 extern uint64_t rte_flow_dynf_metadata_mask;
2639 #define RTE_FLOW_DYNF_METADATA(m) \
2640 RTE_MBUF_DYNFIELD((m), rte_flow_dynf_metadata_offs, uint32_t *)
2643 #define PKT_RX_DYNF_METADATA (rte_flow_dynf_metadata_mask)
2644 #define PKT_TX_DYNF_METADATA (rte_flow_dynf_metadata_mask)
2647 static inline uint32_t
2648 rte_flow_dynf_metadata_get(
struct rte_mbuf *m)
2650 return *RTE_FLOW_DYNF_METADATA(m);
2655 rte_flow_dynf_metadata_set(
struct rte_mbuf *m, uint32_t v)
2657 *RTE_FLOW_DYNF_METADATA(m) = v;
2667 struct rte_flow_action {
2945 return !!rte_flow_dynf_metadata_mask;
3018 const struct rte_flow_action actions[],
3045 const struct rte_flow_action actions[],
3070 struct rte_flow *flow,
3119 struct rte_flow *flow,
3120 const struct rte_flow_action *action,
3190 const char *message);
3235 const struct rte_flow_action *actions);
rte_be16_t ver_opt_len_o_c_rsvd0
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)
struct rte_flow_action * actions
rte_be16_t epcp_edei_in_ecid_b
static struct rte_flow_item_tag rte_flow_item_tag_mask
struct rte_flow_attr * attr
static struct rte_flow_item_igmp rte_flow_item_igmp_mask
static struct rte_flow_item_port_id rte_flow_item_port_id_mask
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)
struct rte_flow_item * definition
static struct rte_flow_item_ipv6 rte_flow_item_ipv6_mask
static struct rte_flow_item_nsh rte_flow_item_nsh_mask
static struct rte_flow_item_higig2_hdr rte_flow_item_higig2_hdr_mask
struct rte_flow_attr attr
static struct rte_flow_item_esp rte_flow_item_esp_mask
static struct rte_flow_item_raw rte_flow_item_raw_mask
#define RTE_ETHER_ADDR_LEN
static struct rte_flow_item_vxlan_gpe rte_flow_item_vxlan_gpe_mask
int rte_flow_isolate(uint16_t port_id, int set, struct rte_flow_error *error)
static struct rte_flow_item_mpls rte_flow_item_mpls_mask
static struct rte_flow_item_gre rte_flow_item_gre_mask
__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)
static struct rte_flow_item_icmp6_nd_opt_tla_eth rte_flow_item_icmp6_nd_opt_tla_eth_mask
struct rte_ether_addr tla
struct rte_flow_action * actions
struct rte_ether_addr tha
static struct rte_flow_item_icmp6 rte_flow_item_icmp6_mask
static struct rte_flow_item_gtp_psc rte_flow_item_gtp_psc_mask
static struct rte_flow_item_icmp rte_flow_item_icmp_mask
static struct rte_flow_item_gtp rte_flow_item_gtp_mask
struct rte_flow_action * actions
static struct rte_flow_item_udp rte_flow_item_udp_mask
static struct rte_flow_item_phy_port rte_flow_item_phy_port_mask
static struct rte_flow_item_pppoe_proto_id rte_flow_item_pppoe_proto_id_mask
static struct rte_flow_item_mark rte_flow_item_mark_mask
static struct rte_flow_item_ipv4 rte_flow_item_ipv4_mask
static struct rte_flow_item_icmp6_nd_opt rte_flow_item_icmp6_nd_opt_mask
struct rte_flow_item * pattern
static struct rte_flow_item_icmp6_nd_na rte_flow_item_icmp6_nd_na_mask
enum rte_flow_error_type type
static struct rte_flow_item_geneve rte_flow_item_geneve_mask
static struct rte_flow_item_sctp rte_flow_item_sctp_mask
rte_be16_t rsvd_grp_ecid_b
static struct rte_flow_item_vf rte_flow_item_vf_mask
int rte_flow_flush(uint16_t port_id, struct rte_flow_error *error)
static struct rte_flow_item_nvgre rte_flow_item_nvgre_mask
int rte_flow_error_set(struct rte_flow_error *error, int code, enum rte_flow_error_type type, const void *cause, const char *message)
int rte_flow_destroy(uint16_t port_id, struct rte_flow *flow, struct rte_flow_error *error)
enum rte_flow_item_type type
rte_be16_t c_k_s_rsvd0_ver
struct rte_flow_item * items
__rte_experimental int rte_flow_get_aged_flows(uint16_t port_id, void **contexts, uint32_t nb_contexts, struct rte_flow_error *error)
struct rte_ether_addr sla
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_ether_addr dst
static struct rte_flow_item_eth rte_flow_item_eth_mask
static struct rte_flow_item_fuzzy rte_flow_item_fuzzy_mask
struct rte_ether_addr sha
static struct rte_flow_item_arp_eth_ipv4 rte_flow_item_arp_eth_ipv4_mask
struct rte_flow_action * actions_ro
static struct rte_flow_item_any rte_flow_item_any_mask
struct rte_flow_item * pattern_ro
__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)
__rte_experimental int rte_flow_dynf_metadata_register(void)
struct rte_ether_addr src
static struct rte_flow_item_ah rte_flow_item_ah_mask
static struct rte_flow_item_vlan rte_flow_item_vlan_mask
__rte_experimental int rte_flow_dev_dump(uint16_t port_id, FILE *file, struct rte_flow_error *error)
struct rte_flow_item * definition
static struct rte_flow_item_tcp rte_flow_item_tcp_mask
static struct rte_flow_item_ipv6_ext rte_flow_item_ipv6_ext_mask
static struct rte_flow_item_e_tag rte_flow_item_e_tag_mask
static __rte_experimental int rte_flow_dynf_metadata_avail(void)
uint8_t addr_bytes[RTE_ETHER_ADDR_LEN]
struct rte_flow_attr * attr_ro
static struct rte_flow_item_meta rte_flow_item_meta_mask
static struct rte_flow_item_icmp6_nd_opt_sla_eth rte_flow_item_icmp6_nd_opt_sla_eth_mask
static struct rte_flow_item_icmp6_nd_ns rte_flow_item_icmp6_nd_ns_mask
static struct rte_flow_item_vxlan rte_flow_item_vxlan_mask