Searched refs:am (Results 1 - 25 of 110) sorted by relevance

12345

/vpp/src/plugins/acl/
H A Dhash_lookup.h30 void hash_acl_apply(acl_main_t *am, u32 lc_index, int acl_index, u32 acl_position);
34 void hash_acl_unapply(acl_main_t *am, u32 lc_index, int acl_index);
41 void hash_acl_add(acl_main_t *am, int acl_index);
42 void hash_acl_delete(acl_main_t *am, int acl_index);
45 int hash_acl_exists(acl_main_t *am, int acl_index);
H A Dsess_mgmt_node.c86 acl_fa_verify_init_sessions (acl_main_t * am) argument
88 if (!am->fa_sessions_hash_is_initialized)
92 for (wk = 0; wk < vec_len (am->per_worker_data); wk++)
94 acl_fa_per_worker_data_t *pw = &am->per_worker_data[wk];
98 * pool_alloc_aligned(pw->fa_sessions_pool, am->fa_conn_table_max_entries, CLIB_CACHE_LINE_BYTES);
99 * clib_bitmap_validate(pool_header(pw->fa_sessions_pool)->free_bitmap, am->fa_conn_table_max_entries);
102 am->fa_conn_table_max_entries);
106 clib_bihash_init_40_8 (&am->fa_ip6_sessions_hash,
108 am->fa_conn_table_hash_num_buckets,
109 am
130 fa_session_get_list_timeout(acl_main_t * am, fa_session_t * sess) argument
140 acl_fa_get_list_head_expiry_time(acl_main_t * am, acl_fa_per_worker_data_t * pw, u64 now, u16 thread_index, int timeout_type) argument
148 acl_fa_conn_time_to_check(acl_main_t * am, acl_fa_per_worker_data_t * pw, u64 now, u16 thread_index, u32 session_index) argument
166 acl_fa_check_idle_sessions(acl_main_t * am, u16 thread_index, u64 now) argument
358 send_one_worker_interrupt(vlib_main_t * vm, acl_main_t * am, int thread_index) argument
377 aclp_post_session_change_request(acl_main_t * am, u32 target_thread, u32 target_session, u32 request_type) argument
401 aclp_swap_wip_and_pending_session_change_requests(acl_main_t * am, u32 target_thread) argument
415 purgatory_has_connections(vlib_main_t * vm, acl_main_t * am, int thread_index) argument
435 acl_main_t *am = &amp;acl_main; local
563 send_interrupts_to_workers(vlib_main_t * vm, acl_main_t * am) argument
579 acl_main_t *am = &amp;acl_main; local
861 acl_main_t *am = &amp;acl_main; local
922 acl_main_t *am = &amp;acl_main; local
[all...]
H A Dlookup_context.c27 acl_main_t *am = &acl_main; local
29 if (pool_is_free_index (am->acls, acl_index))
36 static u32 get_acl_user_id(acl_main_t *am, char *user_module_name, char *val1_label, char *val2_label) argument
40 pool_foreach (auser, am->acl_users,
43 return (auser - am->acl_users);
47 pool_get(am->acl_users, auser);
51 return (auser - am->acl_users);
54 static int acl_user_id_valid(acl_main_t *am, u32 acl_user_id) argument
57 if (pool_is_free_index (am->acl_users, acl_user_id))
63 static int acl_lc_index_valid(acl_main_t *am, u3 argument
79 acl_main_t *am = &amp;acl_main; local
100 acl_main_t *am = &amp;acl_main; local
125 lock_acl(acl_main_t *am, u32 acl, u32 lc_index) argument
136 acl_main_t *am = &amp;acl_main; local
143 unlock_acl(acl_main_t *am, u32 acl, u32 lc_index) argument
158 acl_main_t *am = &amp;acl_main; local
168 acl_main_t *am = &amp;acl_main; local
179 acl_main_t *am = &amp;acl_main; local
192 acl_main_t *am = &amp;acl_main; local
223 acl_main_t *am = &amp;acl_main; local
277 acl_main_t *am = &amp;acl_main; local
314 acl_main_t *am = &amp;acl_main; local
331 acl_main_t *am = &amp;acl_main; local
[all...]
H A Dsession_inlines.h51 acl_fa_ifc_has_sessions (acl_main_t * am, int sw_if_index0) argument
53 return am->fa_sessions_hash_is_initialized;
57 acl_fa_ifc_has_in_acl (acl_main_t * am, int sw_if_index0) argument
59 int it_has = clib_bitmap_get (am->fa_in_acl_on_sw_if_index, sw_if_index0);
64 acl_fa_ifc_has_out_acl (acl_main_t * am, int sw_if_index0) argument
66 int it_has = clib_bitmap_get (am->fa_out_acl_on_sw_if_index, sw_if_index0);
71 fa_session_get_timeout_type (acl_main_t * am, fa_session_t * sess) argument
102 fa_session_get_timeout (acl_main_t * am, fa_session_t * sess) argument
104 u64 timeout = (am->vlib_main->clib_time.clocks_per_second);
111 int timeout_type = fa_session_get_timeout_type (am, ses
118 get_session_ptr_no_check(acl_main_t * am, u16 thread_index, u32 session_index) argument
127 get_session_ptr(acl_main_t * am, u16 thread_index, u32 session_index) argument
138 is_valid_session_ptr(acl_main_t * am, u16 thread_index, fa_session_t * sess) argument
147 acl_fa_conn_list_add_session(acl_main_t * am, fa_full_session_id_t sess_id, u64 now) argument
193 acl_fa_conn_list_delete_session(acl_main_t * am, fa_full_session_id_t sess_id, u64 now) argument
247 acl_fa_restart_timer_for_session(acl_main_t * am, u64 now, fa_full_session_id_t sess_id) argument
277 acl_fa_track_session(acl_main_t * am, int is_input, u32 sw_if_index, u64 now, fa_session_t * sess, fa_5tuple_t * pkt_5tuple, u32 pkt_len) argument
359 reverse_session_add_del_ip6(acl_main_t * am, clib_bihash_kv_40_8_t * pkv, int is_add) argument
382 reverse_session_add_del_ip4(acl_main_t * am, clib_bihash_kv_16_8_t * pkv, int is_add) argument
403 acl_fa_deactivate_session(acl_main_t * am, u32 sw_if_index, fa_full_session_id_t sess_id) argument
429 acl_fa_put_session(acl_main_t * am, u32 sw_if_index, fa_full_session_id_t sess_id) argument
450 acl_fa_two_stage_delete_session(acl_main_t * am, u32 sw_if_index, fa_full_session_id_t sess_id, u64 now) argument
469 acl_fa_can_add_session(acl_main_t * am, int is_input, u32 sw_if_index) argument
479 acl_fa_try_recycle_session(acl_main_t * am, int is_input, u16 thread_index, u32 sw_if_index, u64 now) argument
519 acl_fa_add_session(acl_main_t * am, int is_input, int is_ip6, u32 sw_if_index, u64 now, fa_5tuple_t * p5tuple, u16 current_policy_epoch) argument
590 acl_fa_find_session(acl_main_t * am, int is_ip6, u32 sw_if_index0, fa_5tuple_t * p5tuple, u64 * pvalue_sess) argument
612 acl_fa_make_session_hash(acl_main_t * am, int is_ip6, u32 sw_if_index0, fa_5tuple_t * p5tuple) argument
622 acl_fa_prefetch_session_bucket_for_hash(acl_main_t * am, int is_ip6, u64 hash) argument
632 acl_fa_prefetch_session_data_for_hash(acl_main_t * am, int is_ip6, u64 hash) argument
641 acl_fa_find_session_with_hash(acl_main_t * am, int is_ip6, u32 sw_if_index0, u64 hash, fa_5tuple_t * p5tuple, u64 * pvalue_sess) argument
[all...]
H A Dacl.c44 #define REPLY_MSG_ID_BASE am->msg_id_base
81 acl_set_heap (acl_main_t * am) argument
83 if (0 == am->acl_mheap)
85 if (0 == am->acl_mheap_size)
91 ((u64) am->fa_conn_table_max_entries) * sizeof (fa_session_t);
94 u64 bihash_size = (u64) am->fa_conn_table_hash_memory_size;
96 am->acl_mheap_size =
101 if (am->acl_mheap_size > max_possible)
104 am->acl_mheap_size, max_possible);
107 am
124 acl_main_t *am = &amp;acl_main; local
129 acl_plugin_acl_set_validate_heap(acl_main_t * am, int on) argument
135 acl_plugin_acl_set_trace_heap(acl_main_t * am, int on) argument
143 acl_main_t *am = &amp;acl_main; local
168 acl_main_t *am = &amp;acl_main; local
196 acl_print_acl_x(acl_vector_print_func_t vpr, vlib_main_t * vm, acl_main_t * am, int acl_index) argument
242 acl_main_t *am = &amp;acl_main; local
263 acl_print_acl(vlib_main_t * vm, acl_main_t * am, int acl_index) argument
269 warning_acl_print_acl(vlib_main_t * vm, acl_main_t * am, int acl_index) argument
275 increment_policy_epoch(acl_main_t * am, u32 sw_if_index, int is_input) argument
290 try_increment_acl_policy_epoch(acl_main_t * am, u32 acl_num, int is_input) argument
306 policy_notify_acl_change(acl_main_t * am, u32 acl_num) argument
314 validate_and_reset_acl_counters(acl_main_t * am, u32 acl_index) argument
357 acl_main_t *am = &amp;acl_main; local
479 acl_main_t *am = &amp;acl_main; local
550 intf_has_etype_whitelist(acl_main_t * am, u32 sw_if_index, int is_input) argument
560 acl_clear_sessions(acl_main_t * am, u32 sw_if_index) argument
571 acl_interface_in_enable_disable(acl_main_t * am, u32 sw_if_index, int enable_disable) argument
611 acl_interface_out_enable_disable(acl_main_t * am, u32 sw_if_index, int enable_disable) argument
653 acl_stats_intf_counters_enable_disable(acl_main_t * am, int enable_disable) argument
663 acl_interface_inout_enable_disable(acl_main_t * am, u32 sw_if_index, int is_input, int enable_disable) argument
673 acl_is_not_defined(acl_main_t * am, u32 acl_list_index) argument
679 acl_interface_set_inout_acl_list(acl_main_t * am, u32 sw_if_index, u8 is_input, u32 * vec_acl_list_index, int *may_clear_sessions) argument
821 acl_main_t *am = &amp;acl_main; local
833 acl_main_t *am = &amp;acl_main; local
891 acl_set_etype_whitelists(acl_main_t * am, u32 sw_if_index, u16 * vec_in, u16 * vec_out) argument
1036 macip_create_classify_tables(acl_main_t * am, u32 macip_acl_index) argument
1540 macip_destroy_classify_tables(acl_main_t * am, u32 macip_acl_index) argument
1584 macip_maybe_apply_unapply_classifier_tables(acl_main_t * am, u32 acl_index, int is_apply) argument
1614 acl_main_t *am = &amp;acl_main; local
1699 macip_acl_interface_del_acl(acl_main_t * am, u32 sw_if_index) argument
1736 macip_acl_interface_add_acl(acl_main_t * am, u32 sw_if_index, u32 macip_acl_index) argument
1770 acl_main_t *am = &amp;acl_main; local
1807 acl_main_t *am = &amp;acl_main; local
1857 acl_main_t *am = &amp;acl_main; local
1883 acl_main_t *am = &amp;acl_main; local
1897 acl_main_t *am = &amp;acl_main; local
1910 acl_main_t *am = &amp;acl_main; local
1930 acl_main_t *am = &amp;acl_main; local
1998 send_acl_details(acl_main_t * am, vl_api_registration_t * reg, acl_list_t * acl, u32 context) argument
2032 acl_main_t *am = &amp;acl_main; local
2070 send_acl_interface_list_details(acl_main_t * am, vl_api_registration_t * reg, u32 sw_if_index, u32 context) argument
2120 acl_main_t *am = &amp;acl_main; local
2154 acl_main_t *am = &amp;acl_main; local
2181 acl_main_t *am = &amp;acl_main; local
2207 acl_main_t *am = &amp;acl_main; local
2220 acl_main_t *am = &amp;acl_main; local
2237 send_macip_acl_details(acl_main_t * am, vl_api_registration_t * reg, macip_acl_list_t * acl, u32 context) argument
2286 acl_main_t *am = &amp;acl_main; local
2320 acl_main_t *am = &amp;acl_main; local
2346 send_macip_acl_interface_list_details(acl_main_t * am, vl_api_registration_t * reg, u32 sw_if_index, u32 acl_index, u32 context) argument
2374 acl_main_t *am = &amp;acl_main; local
2409 acl_main_t *am = &amp;acl_main; local
2437 send_acl_interface_etype_whitelist_details(acl_main_t * am, vl_api_registration_t * reg, u32 sw_if_index, u32 context) argument
2498 acl_main_t *am = &amp;acl_main; local
2530 acl_main_t *am = &amp;acl_main; local
2549 acl_main_t *am = &amp;acl_main; local
2556 acl_main_t *am = &amp;acl_main; local
2572 acl_main_t *am = &amp;acl_main; local
2605 acl_main_t *am = &amp;acl_main; local
2820 macip_acl_print(acl_main_t * am, u32 macip_acl_index) argument
3046 acl_main_t *am = &amp;acl_main; local
3082 acl_main_t *am = &amp;acl_main; local
3093 acl_plugin_show_acl(acl_main_t * am, u32 acl_index) argument
3136 acl_main_t *am = &amp;acl_main; local
3175 acl_plugin_show_interface(acl_main_t * am, u32 sw_if_index, int show_acl, int detail) argument
3283 acl_main_t *am = &amp;acl_main; local
3300 acl_main_t *am = &amp;acl_main; local
3324 acl_plugin_show_sessions(acl_main_t * am, u32 show_session_thread_id, u32 show_session_session_index) argument
3477 acl_main_t *am = &amp;acl_main; local
3558 acl_main_t *am = &amp;acl_main; local
3678 acl_main_t *am = &amp;acl_main; local
3749 acl_main_t *am = &amp;acl_main; local
[all...]
H A Dhash_lookup.c36 always_inline applied_hash_ace_entry_t **get_applied_hash_aces(acl_main_t *am, u32 lc_index) argument
38 applied_hash_ace_entry_t **applied_hash_aces = vec_elt_at_index(am->hash_entry_vec_by_lc_index, lc_index);
40 /*is_input ? vec_elt_at_index(am->input_hash_entry_vec_by_sw_if_index, sw_if_index)
41 : vec_elt_at_index(am->output_hash_entry_vec_by_sw_if_index, sw_if_index);
48 hashtable_add_del(acl_main_t *am, clib_bihash_kv_48_8_t *kv, int is_add) argument
53 BV (clib_bihash_add_del) (&am->acl_lookup_hash, kv, is_add);
262 find_mask_type_index(acl_main_t *am, fa_5tuple_t *mask) argument
266 pool_foreach(mte, am->ace_mask_type_pool,
269 return (mte - am->ace_mask_type_pool);
276 assign_mask_type_index(acl_main_t *am, fa_5tuple_ argument
300 lock_mask_type_index(acl_main_t *am, u32 mask_type_index) argument
310 release_mask_type_index(acl_main_t *am, u32 mask_type_index) argument
325 tm_assign_mask_type_index(acl_main_t *am, fa_5tuple_t *mask, int is_ip6, u32 lc_index) argument
380 fill_applied_hash_ace_kv(acl_main_t *am, applied_hash_ace_entry_t **applied_hash_aces, u32 lc_index, u32 new_index, clib_bihash_kv_48_8_t *kv) argument
412 add_del_hashtable_entry(acl_main_t *am, u32 lc_index, applied_hash_ace_entry_t **applied_hash_aces, u32 index, int is_add) argument
425 remake_hash_applied_mask_info_vec(acl_main_t * am, applied_hash_ace_entry_t ** applied_hash_aces, u32 lc_index) argument
525 add_colliding_rule(acl_main_t * am, applied_hash_ace_entry_t ** applied_hash_aces, u32 head_index, u32 applied_entry_index) argument
551 activate_applied_ace_hash_entry(acl_main_t *am, u32 lc_index, applied_hash_ace_entry_t **applied_hash_aces, u32 new_index) argument
590 hash_acl_set_heap(acl_main_t *am) argument
617 acl_main_t *am = &amp;acl_main; local
624 acl_main_t *am = &amp;acl_main; local
629 assign_mask_type_index_to_pae(acl_main_t *am, u32 lc_index, int is_ip6, applied_hash_ace_entry_t *pae) argument
654 check_collision_count_and_maybe_split(acl_main_t *am, u32 lc_index, int is_ip6, u32 first_index) argument
664 hash_acl_apply(acl_main_t *am, u32 lc_index, int acl_index, u32 acl_position) argument
779 move_applied_ace_hash_entry(acl_main_t *am, u32 lc_index, applied_hash_ace_entry_t **applied_hash_aces, u32 old_index, u32 new_index) argument
834 deactivate_applied_ace_hash_entry(acl_main_t *am, u32 lc_index, applied_hash_ace_entry_t **applied_hash_aces, u32 old_index) argument
882 hash_acl_unapply(acl_main_t *am, u32 lc_index, int acl_index) argument
969 hash_acl_reapply(acl_main_t *am, u32 lc_index, int acl_index) argument
1097 hash_acl_exists(acl_main_t *am, int acl_index) argument
1106 hash_acl_add(acl_main_t *am, int acl_index) argument
1154 hash_acl_delete(acl_main_t *am, int acl_index) argument
1196 show_hash_acl_hash(vlib_main_t * vm, acl_main_t *am, u32 verbose) argument
1205 acl_main_t *am = &amp;acl_main; local
1224 acl_main_t *am = &amp;acl_main; local
1283 acl_main_t *am = &amp;acl_main; local
1333 acl_main_t *am = &amp;acl_main; local
1424 split_partition(acl_main_t *am, u32 first_index, u32 lc_index, int is_ip6) argument
[all...]
H A Ddataplane_node.c145 is_permitted_ethertype (acl_main_t * am, int sw_if_index0, int is_output, argument
149 ? am->output_etype_whitelist_by_sw_if_index
150 : am->input_etype_whitelist_by_sw_if_index;
170 acl_main_t *am = &acl_main; local
197 if (is_permitted_ethertype (am, sw_if_index0, is_output, ethertype))
291 get_current_policy_epoch (acl_main_t * am, int is_input, u32 sw_if_index0) argument
294 is_input ? &am->input_policy_epoch_by_sw_if_index :
295 &am->output_policy_epoch_by_sw_if_index;
330 stale_session_deleted (acl_main_t * am, int is_input, argument
335 get_current_policy_epoch (am, is_inpu
375 fill_5tuple_xN(int vector_sz, acl_main_t * am, int is_ip6, int is_input, int is_l2_path, vlib_buffer_t ** b, u32 * sw_if_index, fa_5tuple_t * out_fa_5tuple) argument
386 make_session_hash_xN(int vector_sz, acl_main_t * am, int is_ip6, u32 * sw_if_index, fa_5tuple_t * fa_5tuple, u64 * out_hash) argument
397 prefetch_session_entry(acl_main_t * am, fa_full_session_id_t f_sess_id) argument
405 process_established_session(vlib_main_t * vm, acl_main_t * am, u32 counter_node_index, int is_input, u64 now, fa_full_session_id_t f_sess_id, u32 * sw_if_index, fa_5tuple_t * fa_5tuple, u32 pkt_len, int node_trace_on, u32 * trace_bitmap) argument
464 acl_main_t *am = &amp;acl_main; local
556 acl_main_t *am = &amp;acl_main; local
835 acl_main_t *am = &amp;acl_main; local
871 acl_main_t *am = &amp;acl_main; local
[all...]
H A Dpublic_inlines.h70 acl_fill_5tuple_l3_data (acl_main_t * am, vlib_buffer_t * b0, int is_ip6, argument
92 acl_fill_5tuple_l4_and_pkt_data (acl_main_t * am, u32 sw_if_index0, vlib_buffer_t * b0, int is_ip6, int is_input, argument
113 int need_skip_eh = clib_bitmap_get (am->fa_ipv6_known_eh_bitmap, proto);
143 clib_bitmap_get (am->fa_ipv6_known_eh_bitmap, proto);
207 acl_fill_5tuple (acl_main_t * am, u32 sw_if_index0, vlib_buffer_t * b0, int is_ip6, argument
226 acl_fill_5tuple_l3_data(am, b0, is_ip6, l3_offset, p5tuple_pkt);
227 acl_fill_5tuple_l4_and_pkt_data(am, sw_if_index0, b0, is_ip6, is_input, l3_offset, &p5tuple_pkt->l4, &p5tuple_pkt->pkt);
234 acl_main_t *am = p_acl_main; local
235 acl_fill_5tuple(am, 0, b0, is_ip6, is_input, is_l2_path, (fa_5tuple_t *)p5tuple_pkt);
290 single_acl_match_5tuple (acl_main_t * am, u3 argument
407 acl_main_t * am = p_acl_main; local
417 acl_main_t *am = p_acl_main; local
459 match_portranges(acl_main_t *am, fa_5tuple_t *match, u32 index) argument
535 multi_acl_match_get_applied_ace_index(acl_main_t * am, int is_ip6, fa_5tuple_t * match) argument
635 acl_main_t *am = p_acl_main; local
661 acl_main_t *am = p_acl_main; local
695 acl_main_t *am = p_acl_main; local
[all...]
/vpp/src/vlibapi/
H A Dapi_shared.c56 api_main_t *am = vlibapi_get_main (); local
57 am->missing_clients++;
61 vl_msg_api_rx_trace_enabled (api_main_t * am) argument
63 return (am->rx_trace && am->rx_trace->enabled);
67 vl_msg_api_tx_trace_enabled (api_main_t * am) argument
69 return (am->tx_trace && am->tx_trace->enabled);
76 vl_msg_api_trace (api_main_t * am, vl_api_trace_t * tp, void *msg) argument
86 cfgp = am
124 vl_msg_api_trace_onoff(api_main_t * am, vl_api_trace_which_t which, int onoff) argument
166 vl_msg_api_trace_free(api_main_t * am, vl_api_trace_which_t which) argument
203 vl_api_serialize_message_table(api_main_t * am, u8 * vector) argument
226 vl_msg_api_trace_save(api_main_t * am, vl_api_trace_which_t which, FILE * fp) argument
365 vl_msg_api_trace_configure(api_main_t * am, vl_api_trace_which_t which, u32 nitems) argument
436 msg_handler_internal(api_main_t * am, void *the_msg, int trace_it, int do_it, int free_it) argument
548 vl_msg_api_handler_with_vm_node(api_main_t * am, svm_region_t * vlib_rp, void *the_msg, vlib_main_t * vm, vlib_node_runtime_t * node, u8 is_private) argument
678 api_main_t *am = vlibapi_get_main (); local
689 api_main_t *am = vlibapi_get_main (); local
699 api_main_t *am = vlibapi_get_main (); local
716 api_main_t *am = vlibapi_get_main (); local
727 api_main_t *am = vlibapi_get_main (); local
747 api_main_t *am = vlibapi_get_main (); local
774 api_main_t *am = vlibapi_get_main (); local
796 api_main_t *am = vlibapi_get_main (); local
881 api_main_t *am = vlibapi_get_main (); local
913 vl_msg_api_trace_get(api_main_t * am, vl_api_trace_which_t which) argument
943 api_main_t *am = vlibapi_get_main (); local
978 api_main_t *am = vlibapi_get_main (); local
992 api_main_t *am = vlibapi_get_main (); local
1013 api_main_t *am = vlibapi_get_main (); local
1021 api_main_t *am = vlibapi_get_main (); local
1063 vl_msg_api_add_msg_name_crc(api_main_t * am, const char *string, u32 id) argument
1081 vl_msg_api_add_version(api_main_t * am, const char *string, u32 major, u32 minor, u32 patch) argument
1093 api_main_t *am = vlibapi_get_main (); local
1115 api_main_t *am = vlibapi_get_main (); local
1129 api_main_t *am = vlibapi_get_main (); local
1204 api_main_t *am = vlibapi_get_main (); local
1212 api_main_t *am = vlibapi_get_main (); local
1222 api_main_t *am = vlibapi_get_main (); local
[all...]
H A Dapi.h39 int vl_msg_api_trace_save (api_main_t * am,
71 api_main_t * am = vlibapi_get_main(); \
74 = am->tag##_function_registrations; \
75 am->tag##_function_registrations = &_vl_msg_api_function; \
100 int vl_msg_api_rx_trace_enabled (api_main_t * am);
101 int vl_msg_api_tx_trace_enabled (api_main_t * am);
102 void vl_msg_api_trace (api_main_t * am, vl_api_trace_t * tp, void *msg);
103 int vl_msg_api_trace_onoff (api_main_t * am, vl_api_trace_which_t which,
105 int vl_msg_api_trace_free (api_main_t * am, vl_api_trace_which_t which);
106 int vl_msg_api_trace_configure (api_main_t * am, vl_api_trace_which_
[all...]
/vpp/src/vlibmemory/
H A Dmemory_shared.c56 api_main_t *am = vlibapi_get_main (); local
164 am->ring_misses++;
202 api_main_t *am = vlibapi_get_main (); local
203 vl_shmem_hdr_t *shmem_hdr = am->shmem_hdr;
208 pool = (am->our_pid == shmem_hdr->vl_pid);
209 return vl_msg_api_alloc_internal (am->vlib_rp, nbytes, pool,
227 api_main_t *am = vlibapi_get_main (); local
228 vl_shmem_hdr_t *shmem_hdr = am->shmem_hdr;
230 pool = (am->our_pid == shmem_hdr->vl_pid);
231 return vl_msg_api_alloc_internal (am
238 api_main_t *am = vlibapi_get_main (); local
256 api_main_t *am = vlibapi_get_main (); local
313 api_main_t *am = vlibapi_get_main (); local
322 api_main_t *am = vlibapi_get_main (); local
345 api_main_t *am = vlibapi_get_main (); local
353 api_main_t *am = vlibapi_get_main (); local
361 api_main_t *am = vlibapi_get_main (); local
369 api_main_t *am = vlibapi_get_main (); local
377 api_main_t *am = vlibapi_get_main (); local
385 api_main_t *am = vlibapi_get_main (); local
393 api_main_t *am = vlibapi_get_main (); local
401 api_main_t *am = vlibapi_get_main (); local
409 api_main_t *am = vlibapi_get_main (); local
495 api_main_t *am = vlibapi_get_main (); local
538 api_main_t *am = vlibapi_get_main (); local
708 api_main_t *am = vlibapi_get_main (); local
718 api_main_t *am = vlibapi_get_main (); local
755 api_main_t *am = vlibapi_get_main (); local
802 api_main_t *am = vlibapi_get_main (); local
[all...]
H A Dmemory_api.c67 api_main_t *am = vlibapi_get_main (); local
70 1 + vec_len (am->vlib_private_rps)))
72 vl_shmem_hdr_t *shmem_hdr = am->shmem_hdr;
84 for (i = 0; i < vec_len (am->vlib_private_rps); i++)
86 svm_region_t *vlib_rp = am->vlib_private_rps[i];
125 api_main_t *am = vlibapi_get_main (); local
128 pool_get (am->vl_clients, regpp);
137 regp->vl_api_registration_pool_index = regpp - am->vl_clients;
138 regp->vlib_rp = am->vlib_rp;
139 regp->shmem_hdr = am
162 api_main_t *am = vlibapi_get_main (); local
261 api_main_t *am = vlibapi_get_main (); local
398 api_main_t *am; local
429 api_main_t *am = vlibapi_get_main (); local
478 api_main_t *am = vlibapi_get_main (); local
494 api_main_t *am = vlibapi_get_main (); local
534 vl_mem_send_client_keepalive_w_reg(api_main_t * am, f64 now, vl_api_registration_t ** regpp, u32 ** dead_indices, u32 ** confused_indices) argument
578 vl_mem_api_dead_client_scan(api_main_t * am, vl_shmem_hdr_t * shm, f64 now) argument
686 void_mem_api_handle_msg_i(api_main_t * am, svm_region_t * vlib_rp, vlib_main_t * vm, vlib_node_runtime_t * node, u8 is_private) argument
708 api_main_t *am = vlibapi_get_main (); local
716 api_main_t *am = vlibapi_get_main (); local
761 api_main_t *am = vlibapi_get_main (); local
771 api_main_t *am = vlibapi_get_main (); local
799 api_main_t *am = vlibapi_get_main (); local
823 api_main_t *am = va_arg (*args, api_main_t *); local
869 api_main_t *am = vlibapi_get_main (); local
935 api_main_t *am = vlibapi_get_main (); local
984 api_main_t *am = vlibapi_get_main (); local
[all...]
H A Dmemory_client.c53 api_main_t *am; member in struct:rx_thread_fn_arg
64 vlibapi_set_main (a->am);
93 api_main_t *am = vlibapi_get_main (); local
98 if (!am->msg_index_by_name_and_crc)
102 hash_foreach_pair (hp, am->msg_index_by_name_and_crc,
110 hash_free (am->msg_index_by_name_and_crc);
124 api_main_t *am = vlibapi_get_main (); local
131 am->my_client_index = mp->index;
132 am->my_registration = (vl_api_registration_t *) (uword) mp->handle;
137 am
169 api_main_t *am = vlibapi_get_main (); local
253 api_main_t *am = vlibapi_get_main (); local
269 api_main_t *am = vlibapi_get_main (); local
290 api_main_t *am = vlibapi_get_main (); local
343 api_main_t *am; local
409 api_main_t *am = vlibapi_get_main (); local
509 api_main_t *am = vlibapi_get_main (); local
555 api_main_t *am = vlibapi_get_main (); local
[all...]
H A Dvlib_api_cli.c104 api_main_t *am = vlibapi_get_main (); local
107 if (!pool_elts (am->vl_clients))
114 pool_foreach (regpp, am->vl_clients,
134 regpp - am->vl_clients);
135 vec_add1 (confused_indices, regpp - am->vl_clients);
146 pool_put_index (am->vl_clients, confused_indices[i]);
151 if (am->missing_clients)
153 am->missing_clients);
155 vl_sock_api_dump_clients (vm, am);
164 api_main_t *am local
231 api_main_t *am = vlibapi_get_main (); local
307 api_main_t *am = vlibapi_get_main (); local
355 api_main_t *am = va_arg (*args, api_main_t *); local
391 vl_msg_api_custom_dump_configure(api_main_t * am) argument
405 api_main_t *am = vlibapi_get_main (); local
685 api_main_t *am = vlibapi_get_main (); local
835 api_main_t *am = vlibapi_get_main (); local
912 api_main_t *am = vlibapi_get_main (); local
945 api_main_t *am = vlibapi_get_main (); local
1035 api_main_t *am = vlibapi_get_main (); local
[all...]
H A Dvlib_api.c77 api_main_t *am = vlibapi_get_main (); local
87 if (am->msg_range_by_name == 0)
91 p = hash_get_mem (am->msg_range_by_name, name);
95 rp = vec_elt_at_index (am->msg_ranges, p[0]);
111 api_main_t *am = vlibapi_get_main (); local
114 u32 nmsg = vec_len (am->api_version_list);
132 api_version_t *vl = &am->api_version_list[i];
188 api_main_t *am = vlibapi_get_main (); local
189 vl_shmem_hdr_t *shmem_hdr = am->shmem_hdr;
210 api_main_t *am local
267 api_main_t *am = vlibapi_get_main (); local
639 api_main_t *am = vlibapi_get_main (); local
692 api_main_t *am = vlibapi_get_main (); local
[all...]
/vpp/src/vnet/classify/
H A Din_out_acl.c25 in_out_acl_main_t * am,
63 am->vnet_config_main[is_output][tid] = &fcm->config_main;
75 in_out_acl_main_t *am = &in_out_acl_main; local
76 vnet_classify_main_t *vcm = am->vnet_classify_main;
93 (am->classify_table_index_by_sw_if_index[is_output][ti], sw_if_index,
99 am->classify_table_index_by_sw_if_index[is_output][ti]
110 am->classify_table_index_by_sw_if_index[is_output][ti][sw_if_index]
114 vnet_in_out_acl_ip_feature_enable (vm, am, sw_if_index, ti, is_add,
118 am->classify_table_index_by_sw_if_index[is_output][ti][sw_if_index] =
121 am
24 vnet_in_out_acl_ip_feature_enable(vlib_main_t * vnm, in_out_acl_main_t * am, u32 sw_if_index, in_out_acl_table_id_t tid, int feature_enable, int is_output) argument
253 in_out_acl_main_t *am = &amp;in_out_acl_main; local
293 in_out_acl_main_t *am = va_arg (*va, in_out_acl_main_t *); local
315 in_out_acl_main_t *am = &amp;in_out_acl_main; local
[all...]
/vpp/src/vnet/arp/
H A Darp_proxy.c44 arp_proxy_main_t *am = &arp_proxy_main; local
47 vec_foreach (pa, am->proxy_arps)
57 arp_proxy_main_t *am = &arp_proxy_main; local
59 vec_validate (am->enabled_by_sw_if_index, sw_if_index);
61 if (am->enabled_by_sw_if_index[sw_if_index])
66 am->enabled_by_sw_if_index[sw_if_index] = false;
74 arp_proxy_main_t *am = &arp_proxy_main; local
76 vec_validate (am->enabled_by_sw_if_index, sw_if_index);
78 if (!am->enabled_by_sw_if_index[sw_if_index])
83 am
93 arp_proxy_main_t *am = &amp;arp_proxy_main; local
143 arp_proxy_main_t *am = &amp;arp_proxy_main; local
284 arp_proxy_main_t *am = &amp;arp_proxy_main; local
406 arp_proxy_main_t *am = &amp;arp_proxy_main; local
[all...]
/vpp/src/vnet/gso/
H A Dgso_api.c68 setup_message_id_table (api_main_t * am) argument
70 #define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id);
78 api_main_t *am = vlibapi_get_main (); local
93 setup_message_id_table (am);
/vpp/src/plugins/ioam/analyse/ip6/
H A Dip6_ioam_analyse.c109 ip6_ioam_analyser_main_t *am = &ioam_analyser_main; local
116 vec_foreach_index (i, am->aggregated_data)
118 record = am->aggregated_data + i;
144 ip6_ioam_analyser_main_t *am = &ioam_analyser_main; local
147 vec_validate_aligned (am->aggregated_data, 50, CLIB_CACHE_LINE_BYTES);
148 vec_foreach_index (i, am->aggregated_data)
150 ioam_analyse_init_data (am->aggregated_data + i);
/vpp/src/plugins/avf/
H A Davf_api.c38 avf_main_t *am = &avf_main; local
55 REPLY_MACRO2 (VL_API_AVF_CREATE_REPLY + am->msg_id_base,
67 avf_main_t *am = &avf_main; local
82 ad = pool_elt_at_index (am->devices, hw->dev_instance);
87 REPLY_MACRO (VL_API_AVF_DELETE_REPLY + am->msg_id_base);
/vpp/src/vnet/feature/
H A Dfeature_api.c95 setup_message_id_table (api_main_t * am) argument
97 #define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id);
105 api_main_t *am = vlibapi_get_main (); local
120 setup_message_id_table (am);
/vpp/src/vnet/tcp/
H A Dtcp_api.c86 setup_message_id_table (api_main_t * am) argument
88 #define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id);
96 api_main_t *am = vlibapi_get_main (); local
111 setup_message_id_table (am);
/vpp/src/vnet/ip/
H A Dip6_format.c123 ip6_address_and_mask_t *am = va_arg (*args, ip6_address_and_mask_t *); local
125 if (am->addr.as_u64[0] == 0 && am->addr.as_u64[1] == 0 &&
126 am->mask.as_u64[0] == 0 && am->mask.as_u64[1] == 0)
129 if (am->mask.as_u64[0] == ~0 && am->mask.as_u64[1] == ~0)
130 return format (s, "%U", format_ip4_address, &am->addr);
132 return format (s, "%U/%U", format_ip6_address, &am->addr,
133 format_ip4_address, &am
235 ip6_address_and_mask_t *am = va_arg (*args, ip6_address_and_mask_t *); local
[all...]
/vpp/src/vnet/ip6-nd/
H A Dip6_nd_api.c297 vpe_api_main_t *am = &vpe_api_main; local
301 had_reg = hash_elts (am->ip6_ra_events_registration_hash);
302 uword *p = hash_get (am->ip6_ra_events_registration_hash, mp->client_index);
314 rp = pool_elt_at_index (am->ip6_ra_events_registrations, p[0]);
315 pool_put (am->ip6_ra_events_registrations, rp);
316 hash_unset (am->ip6_ra_events_registration_hash, mp->client_index);
326 pool_get (am->ip6_ra_events_registrations, rp);
329 hash_set (am->ip6_ra_events_registration_hash, rp->client_index,
330 rp - am->ip6_ra_events_registrations);
333 have_reg = hash_elts (am
346 vpe_api_main_t *am = &amp;vpe_api_main; local
[all...]
/vpp/src/vpp/api/
H A Dapi_main.c80 api_main_t *am = vlibapi_get_main (); local
85 pool_get (am->vl_clients, regpp);
94 regp->vl_api_registration_pool_index = regpp - am->vl_clients;
95 regp->vlib_rp = am->vlib_rp;
96 regp->shmem_hdr = am->shmem_hdr;
99 regp->vl_input_queue = am->shmem_hdr->vl_input_queue;
108 am->shmem_hdr->application_restarts);
110 vam->vl_input_queue = am->shmem_hdr->vl_input_queue;
259 api_main_t *am = vlibapi_get_main (); local
263 p = hash_get_mem (am
[all...]

Completed in 22 milliseconds

12345