5#ifndef _RTE_ETH_CTRL_H_
6#define _RTE_ETH_CTRL_H_
26#define RTE_NTUPLE_FLAGS_DST_IP 0x0001
27#define RTE_NTUPLE_FLAGS_SRC_IP 0x0002
28#define RTE_NTUPLE_FLAGS_DST_PORT 0x0004
29#define RTE_NTUPLE_FLAGS_SRC_PORT 0x0008
30#define RTE_NTUPLE_FLAGS_PROTO 0x0010
31#define RTE_NTUPLE_FLAGS_TCP_FLAG 0x0020
33#define RTE_5TUPLE_FLAGS ( \
34 RTE_NTUPLE_FLAGS_DST_IP | \
35 RTE_NTUPLE_FLAGS_SRC_IP | \
36 RTE_NTUPLE_FLAGS_DST_PORT | \
37 RTE_NTUPLE_FLAGS_SRC_PORT | \
38 RTE_NTUPLE_FLAGS_PROTO)
40#define RTE_2TUPLE_FLAGS ( \
41 RTE_NTUPLE_FLAGS_DST_PORT | \
42 RTE_NTUPLE_FLAGS_PROTO)
44#define RTE_NTUPLE_TCP_FLAGS_MASK 0x3F
71#define RTE_ETH_FDIR_MAX_FLEXLEN 16
72#define RTE_ETH_INSET_SIZE_MAX 128
78 RTE_ETH_INPUT_SET_UNKNOWN = 0,
81 RTE_ETH_INPUT_SET_L2_SRC_MAC = 1,
82 RTE_ETH_INPUT_SET_L2_DST_MAC,
83 RTE_ETH_INPUT_SET_L2_OUTER_VLAN,
84 RTE_ETH_INPUT_SET_L2_INNER_VLAN,
85 RTE_ETH_INPUT_SET_L2_ETHERTYPE,
88 RTE_ETH_INPUT_SET_L3_SRC_IP4 = 129,
89 RTE_ETH_INPUT_SET_L3_DST_IP4,
90 RTE_ETH_INPUT_SET_L3_SRC_IP6,
91 RTE_ETH_INPUT_SET_L3_DST_IP6,
92 RTE_ETH_INPUT_SET_L3_IP4_TOS,
93 RTE_ETH_INPUT_SET_L3_IP4_PROTO,
94 RTE_ETH_INPUT_SET_L3_IP6_TC,
95 RTE_ETH_INPUT_SET_L3_IP6_NEXT_HEADER,
96 RTE_ETH_INPUT_SET_L3_IP4_TTL,
97 RTE_ETH_INPUT_SET_L3_IP6_HOP_LIMITS,
100 RTE_ETH_INPUT_SET_L4_UDP_SRC_PORT = 257,
101 RTE_ETH_INPUT_SET_L4_UDP_DST_PORT,
102 RTE_ETH_INPUT_SET_L4_TCP_SRC_PORT,
103 RTE_ETH_INPUT_SET_L4_TCP_DST_PORT,
104 RTE_ETH_INPUT_SET_L4_SCTP_SRC_PORT,
105 RTE_ETH_INPUT_SET_L4_SCTP_DST_PORT,
106 RTE_ETH_INPUT_SET_L4_SCTP_VERIFICATION_TAG,
109 RTE_ETH_INPUT_SET_TUNNEL_L2_INNER_DST_MAC = 385,
110 RTE_ETH_INPUT_SET_TUNNEL_L2_INNER_SRC_MAC,
111 RTE_ETH_INPUT_SET_TUNNEL_L2_INNER_VLAN,
112 RTE_ETH_INPUT_SET_TUNNEL_L4_UDP_KEY,
113 RTE_ETH_INPUT_SET_TUNNEL_GRE_KEY,
116 RTE_ETH_INPUT_SET_FLEX_PAYLOAD_1ST_WORD = 641,
117 RTE_ETH_INPUT_SET_FLEX_PAYLOAD_2ND_WORD,
118 RTE_ETH_INPUT_SET_FLEX_PAYLOAD_3RD_WORD,
119 RTE_ETH_INPUT_SET_FLEX_PAYLOAD_4TH_WORD,
120 RTE_ETH_INPUT_SET_FLEX_PAYLOAD_5TH_WORD,
121 RTE_ETH_INPUT_SET_FLEX_PAYLOAD_6TH_WORD,
122 RTE_ETH_INPUT_SET_FLEX_PAYLOAD_7TH_WORD,
123 RTE_ETH_INPUT_SET_FLEX_PAYLOAD_8TH_WORD,
125 RTE_ETH_INPUT_SET_DEFAULT = 65533,
126 RTE_ETH_INPUT_SET_NONE = 65534,
127 RTE_ETH_INPUT_SET_MAX = 65535,
134 RTE_ETH_INPUT_SET_OP_UNKNOWN,
137 RTE_ETH_INPUT_SET_OP_MAX
248 RTE_FDIR_TUNNEL_TYPE_UNKNOWN = 0,
249 RTE_FDIR_TUNNEL_TYPE_NVGRE,
250 RTE_FDIR_TUNNEL_TYPE_VXLAN,
308 RTE_ETH_FDIR_ACCEPT = 0,
310 RTE_ETH_FDIR_PASSTHRU,
374 RTE_ETH_PAYLOAD_UNKNOWN = 0,
379 RTE_ETH_PAYLOAD_MAX = 8,
429#define UINT64_BIT (CHAR_BIT * sizeof(uint64_t))
430#define RTE_FLOW_MASK_ARRAY_SIZE \
431 (RTE_ALIGN(RTE_ETH_FLOW_MAX, UINT64_BIT)/UINT64_BIT)
#define RTE_ETH_INSET_SIZE_MAX
@ RTE_ETH_FDIR_NO_REPORT_STATUS
@ RTE_ETH_FDIR_REPORT_ID_FLEX_4
@ RTE_ETH_FDIR_REPORT_FLEX_8
@ RTE_FDIR_MODE_SIGNATURE
@ RTE_FDIR_MODE_PERFECT_TUNNEL
@ RTE_FDIR_MODE_PERFECT_MAC_VLAN
@ RTE_ETH_INPUT_SET_SELECT
#define RTE_ETH_FDIR_MAX_FLEXLEN
enum rte_eth_fdir_status report_status
enum rte_eth_fdir_behavior behavior
struct rte_eth_fdir_input input
struct rte_eth_fdir_action action
struct rte_eth_flex_payload_cfg flex_set[RTE_ETH_PAYLOAD_MAX]
struct rte_eth_fdir_flex_mask flex_mask[RTE_ETH_FLOW_MAX]
uint8_t mask[RTE_ETH_FDIR_MAX_FLEXLEN]
uint8_t flexbytes[RTE_ETH_FDIR_MAX_FLEXLEN]
uint32_t flex_payload_unit
uint64_t flow_types_mask[RTE_FLOW_MASK_ARRAY_SIZE]
uint32_t max_flex_bitmask_num
uint32_t flex_bitmask_unit
struct rte_eth_fdir_flex_conf flex_conf
uint16_t flex_payload_limit
uint32_t max_flex_payload_segment_num
uint8_t mac_addr_byte_mask
struct rte_eth_ipv6_flow ipv6_mask
struct rte_eth_ipv4_flow ipv4_mask
enum rte_eth_payload_type type
uint16_t src_offset[RTE_ETH_FDIR_MAX_FLEXLEN]
struct rte_ether_addr mac_addr
struct rte_eth_ipv4_flow ip
struct rte_eth_ipv6_flow ip
struct rte_eth_ipv4_flow ip
struct rte_eth_ipv6_flow ip
struct rte_ether_addr mac_addr
enum rte_eth_fdir_tunnel_type tunnel_type
struct rte_eth_ipv4_flow ip
struct rte_eth_ipv6_flow ip