|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
15 #ifndef included_acl_h
16 #define included_acl_h
37 #define ACL_PLUGIN_VERSION_MAJOR 1
38 #define ACL_PLUGIN_VERSION_MINOR 4
40 #define UDP_SESSION_IDLE_TIMEOUT_SEC 600
41 #define TCP_SESSION_IDLE_TIMEOUT_SEC (3600*24)
42 #define TCP_SESSION_TRANSIENT_TIMEOUT_SEC 120
44 #define SESSION_PURGATORY_TIMEOUT_USEC 10
46 #define ACL_PLUGIN_HASH_LOOKUP_HASH_BUCKETS 65536
47 #define ACL_PLUGIN_HASH_LOOKUP_HASH_MEMORY (2 << 25)
183 #define TM_SPLIT_THRESHOLD 39
254 #define ACL_FA_DEFAULT_MAX_DELETED_SESSIONS_PER_INTERVAL 100
262 #define ACL_FA_DEFAULT_MIN_DELETED_SESSIONS_PER_INTERVAL 1
265 #define ACL_FA_DEFAULT_CLEANER_WAIT_TIME_INCREMENT 0.1
281 #define foreach_fa_cleaner_counter \
282 _(fa_cleaner_cnt_delete_by_sw_index, "delete_by_sw_index events") \
283 _(fa_cleaner_cnt_delete_by_sw_index_ok, "delete_by_sw_index handled ok") \
284 _(fa_cleaner_cnt_unknown_event, "unknown events received") \
285 _(fa_cleaner_cnt_timer_restarted, "session idle timers restarted") \
286 _(fa_cleaner_cnt_wait_with_timeout, "event wait with timeout called") \
287 _(fa_cleaner_cnt_wait_without_timeout, "event wait w/o timeout called") \
288 _(fa_cleaner_cnt_event_cycles, "total event cycles") \
290 #define _(id, desc) u32 id;
306 #define acl_log_err(...) \
307 vlib_log(VLIB_LOG_LEVEL_ERR, acl_main.log_default, __VA_ARGS__)
308 #define acl_log_warn(...) \
309 vlib_log(VLIB_LOG_LEVEL_WARNING, acl_main.log_default, __VA_ARGS__)
310 #define acl_log_notice(...) \
311 vlib_log(VLIB_LOG_LEVEL_NOTICE, acl_main.log_default, __VA_ARGS__)
312 #define acl_log_info(...) \
313 vlib_log(VLIB_LOG_LEVEL_INFO, acl_main.log_default, __VA_ARGS__)
319 if (
am->acl_counter_lock)
327 if (
am->acl_counter_lock)
332 #define foreach_acl_eh \
333 _(HOPBYHOP , 0 , "IPv6ExtHdrHopByHop") \
334 _(ROUTING , 43 , "IPv6ExtHdrRouting") \
335 _(DESTOPT , 60 , "IPv6ExtHdrDestOpt") \
336 _(FRAGMENT , 44 , "IPv6ExtHdrFragment") \
337 _(MOBILITY , 135, "Mobility Header") \
338 _(HIP , 139, "Experimental use Host Identity Protocol") \
339 _(SHIM6 , 140, "Shim6 Protocol") \
340 _(EXP1 , 253, "Use for experimentation and testing") \
341 _(EXP2 , 254, "Use for experimentation and testing")
365 #define _(N, v, s) ACL_EH_##N = v,
clib_bihash_48_8_t acl_lookup_hash
uword * in_acl_on_sw_if_index
u32 fa_conn_table_hash_num_buckets
macip_acl_list_t * macip_acls
vl_api_mac_address_t src_mac
applied_hash_ace_entry_t ** hash_entry_vec_by_lc_index
int acl_lookup_hash_initialized
u32 ** input_sw_if_index_vec_by_acl
u32 * acl_ip6_output_classify_table_by_sw_if_index
acl_fa_per_worker_data_t * per_worker_data
u64 fa_max_deleted_sessions_per_interval
#define CLIB_CACHE_LINE_ALIGN_MARK(mark)
u32 * acl_dot1ad_input_classify_table_by_sw_if_index
u32 hash_lookup_hash_buckets
u64 fa_current_cleaner_timer_wait_interval
u32 ** lc_index_vec_by_acl
u16 ** input_etype_whitelist_by_sw_if_index
u64 fa_session_total_deactivations
u32 * output_lc_index_by_sw_if_index
u32 fa_total_enabled_count
u32 * acl_dot1q_output_classify_table_by_sw_if_index
u64 fa_conn_table_max_entries
static void acl_plugin_counter_unlock(acl_main_t *am)
u64 fa_session_total_adds
u32 * acl_dot1q_input_classify_table_by_sw_if_index
u32 * acl_etype_input_classify_table_by_sw_if_index
vl_api_mac_address_t src_mac_mask
void input_acl_packet_match(u32 sw_if_index, vlib_buffer_t *b0, u32 *nextp, u32 *acl_match_p, u32 *rule_match_p, u32 *trace_bitmap)
#define clib_atomic_release(a)
ace_mask_type_entry_t * ace_mask_type_pool
u32 * acl_ip4_input_classify_table_by_sw_if_index
u32 * input_policy_epoch_by_sw_if_index
int fa_interrupt_generation
uword fa_conn_table_hash_memory_size
u32 ** input_acl_vec_by_sw_if_index
f64 fa_cleaner_wait_time_increment
u32 ** sw_if_index_vec_by_macip_acl
#define clib_atomic_test_and_set(a)
u32 ** output_sw_if_index_vec_by_acl
vlib_node_registration_t acl_in_node
u64 fa_session_total_dels
clib_bihash_16_8_t fa_ip4_sessions_hash
u32 * output_policy_epoch_by_sw_if_index
#define foreach_fa_cleaner_counter
void aclp_post_session_change_request(acl_main_t *am, u32 target_thread, u32 target_session, acl_fa_sess_req_t request_type)
u32 * macip_acl_by_sw_if_index
acl_lookup_context_t * acl_lookup_contexts
void aclp_swap_wip_and_pending_session_change_requests(acl_main_t *am, u32 target_thread)
uword hash_lookup_hash_memory
int tuple_merge_split_threshold
struct _vlib_node_registration vlib_node_registration_t
vlib_log_class_t log_default
volatile u32 * acl_counter_lock
u32 * input_lc_index_by_sw_if_index
u64 fa_min_deleted_sessions_per_interval
ip46_address_t src_ip_addr
u32 ** output_acl_vec_by_sw_if_index
A collection of combined counters.
applied_hash_acl_info_t * applied_hash_acl_info_by_lc_index
@ ACL_FA_REQ_SESS_RESCHEDULE
hash_applied_mask_info_t ** hash_applied_mask_info_vec_by_lc_index
void output_acl_packet_match(u32 sw_if_index, vlib_buffer_t *b0, u32 *nextp, u32 *acl_match_p, u32 *rule_match_p, u32 *trace_bitmap)
u32 interface_acl_user_id
clib_bihash_40_8_t fa_ip6_sessions_hash
hash_acl_info_t * hash_acl_infos
uword * fa_ipv6_known_eh_bitmap
uword * out_acl_on_sw_if_index
u32 interface_acl_counters_enabled
u32 * acl_ip6_input_classify_table_by_sw_if_index
int l4_match_nonfirst_fragment
uword * fa_in_acl_on_sw_if_index
int fa_sessions_hash_is_initialized
acl_lookup_context_user_t * acl_users
foreach_fa_cleaner_counter vlib_main_t * vlib_main
u32 * acl_dot1ad_output_classify_table_by_sw_if_index
u32 * acl_etype_output_classify_table_by_sw_if_index
@ ACL_TIMEOUT_TCP_TRANSIENT
u32 * acl_ip4_output_classify_table_by_sw_if_index
int use_hash_acl_matching
vlib_node_registration_t acl_out_node
u32 fa_cleaner_node_index
static void acl_plugin_counter_lock(acl_main_t *am)
vl_api_interface_index_t sw_if_index
u16 ** output_etype_whitelist_by_sw_if_index
uword * fa_out_acl_on_sw_if_index
vlib_combined_counter_main_t * combined_acl_counters
VLIB buffer representation.