Home
last modified time | relevance | path

Searched refs:mlx5hws_context (Results 1 – 25 of 34) sorted by relevance

12

/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dmlx5hws.h7 struct mlx5hws_context;
258 struct mlx5hws_context *
269 int mlx5hws_context_close(struct mlx5hws_context *ctx);
279 void mlx5hws_context_set_peer(struct mlx5hws_context *ctx,
280 struct mlx5hws_context *peer_ctx,
293 mlx5hws_table_create(struct mlx5hws_context *ctx,
339 mlx5hws_match_template_create(struct mlx5hws_context *ctx,
534 mlx5hws_action_create_dest_drop(struct mlx5hws_context *ctx,
547 mlx5hws_action_create_default_miss(struct mlx5hws_context *ctx,
560 mlx5hws_action_create_dest_table(struct mlx5hws_context *ctx,
[all …]
H A Dcontext.c6 bool mlx5hws_context_cap_dynamic_reparse(struct mlx5hws_context *ctx) in mlx5hws_context_cap_dynamic_reparse()
11 u8 mlx5hws_context_get_reparse_mode(struct mlx5hws_context *ctx) in mlx5hws_context_get_reparse_mode()
21 static int hws_context_pools_init(struct mlx5hws_context *ctx) in hws_context_pools_init()
57 static void hws_context_pools_uninit(struct mlx5hws_context *ctx) in hws_context_pools_uninit()
66 static int hws_context_init_pd(struct mlx5hws_context *ctx) in hws_context_init_pd()
81 static int hws_context_uninit_pd(struct mlx5hws_context *ctx) in hws_context_uninit_pd()
89 static void hws_context_check_hws_supp(struct mlx5hws_context *ctx) in hws_context_check_hws_supp()
134 static int hws_context_init_hws(struct mlx5hws_context *ctx, in hws_context_init_hws()
178 static void hws_context_uninit_hws(struct mlx5hws_context *ctx) in hws_context_uninit_hws()
189 struct mlx5hws_context *mlx5hws_context_open(struct mlx5_core_dev *mdev, in mlx5hws_context_open()
[all …]
H A Dpat_arg.h52 bool mlx5hws_pat_verify_actions(struct mlx5hws_context *ctx, __be64 pattern[], size_t sz);
54 int mlx5hws_arg_create(struct mlx5hws_context *ctx,
61 void mlx5hws_arg_destroy(struct mlx5hws_context *ctx, u32 arg_id);
63 int mlx5hws_arg_create_modify_header_arg(struct mlx5hws_context *ctx,
70 int mlx5hws_pat_get_pattern(struct mlx5hws_context *ctx,
75 void mlx5hws_pat_put_pattern(struct mlx5hws_context *ctx,
78 bool mlx5hws_arg_is_valid_arg_request_size(struct mlx5hws_context *ctx,
94 int mlx5hws_arg_write_inline_arg_data(struct mlx5hws_context *ctx,
H A Dcontext.h37 struct mlx5hws_context { struct
59 static inline bool mlx5hws_context_bwc_supported(struct mlx5hws_context *ctx) in mlx5hws_context_bwc_supported() argument
64 static inline bool mlx5hws_context_native_supported(struct mlx5hws_context *ctx) in mlx5hws_context_native_supported()
69 bool mlx5hws_context_cap_dynamic_reparse(struct mlx5hws_context *ctx);
71 u8 mlx5hws_context_get_reparse_mode(struct mlx5hws_context *ctx);
H A Dvport.c6 int mlx5hws_vport_init_vports(struct mlx5hws_context *ctx) in mlx5hws_vport_init_vports()
27 void mlx5hws_vport_uninit_vports(struct mlx5hws_context *ctx) in mlx5hws_vport_uninit_vports()
33 static int hws_vport_add_gvmi(struct mlx5hws_context *ctx, u16 vport) in hws_vport_add_gvmi()
50 static bool hws_vport_is_esw_mgr_vport(struct mlx5hws_context *ctx, u16 vport) in hws_vport_is_esw_mgr_vport()
56 int mlx5hws_vport_get_gvmi(struct mlx5hws_context *ctx, u16 vport, u16 *vport_gvmi) in mlx5hws_vport_get_gvmi()
H A Daction_ste_pool.c22 hws_action_ste_table_create_pool(struct mlx5hws_context *ctx, in hws_action_ste_table_create_pool()
44 struct mlx5hws_context *ctx, in hws_action_ste_table_create_single_rtc()
82 hws_action_ste_table_create_rtcs(struct mlx5hws_context *ctx, in hws_action_ste_table_create_rtcs()
113 hws_action_ste_table_create_stc(struct mlx5hws_context *ctx, in hws_action_ste_table_create_stc()
133 struct mlx5hws_context *ctx = parent_elem->ctx; in hws_action_ste_table_alloc()
189 struct mlx5hws_context *ctx = action_tbl->parent_elem->ctx; in hws_action_ste_table_destroy()
209 hws_action_ste_pool_element_init(struct mlx5hws_context *ctx, in hws_action_ste_pool_element_init()
234 static int hws_action_ste_pool_init(struct mlx5hws_context *ctx, in hws_action_ste_pool_init()
301 struct mlx5hws_context *ctx; in hws_action_ste_pool_cleanup()
305 ctx = container_of(work, struct mlx5hws_context, in hws_action_ste_pool_cleanup()
[all …]
H A Dbwc.c6 static u16 hws_bwc_gen_queue_idx(struct mlx5hws_context *ctx) in hws_bwc_gen_queue_idx()
13 hws_bwc_get_burst_th(struct mlx5hws_context *ctx, u16 queue_id) in hws_bwc_get_burst_th()
20 hws_bwc_get_queue_lock(struct mlx5hws_context *ctx, u16 idx) in hws_bwc_get_queue_lock()
25 static void hws_bwc_lock_all_queues(struct mlx5hws_context *ctx) in hws_bwc_lock_all_queues()
37 static void hws_bwc_unlock_all_queues(struct mlx5hws_context *ctx) in hws_bwc_unlock_all_queues()
71 struct mlx5hws_context *ctx = bwc_matcher->matcher->tbl->ctx; in hws_bwc_matcher_move_all_simple()
182 struct mlx5hws_context *ctx = bwc_matcher->matcher->tbl->ctx; in hws_bwc_matcher_move()
234 struct mlx5hws_context *ctx = table->ctx; in mlx5hws_bwc_matcher_create_simple()
406 int mlx5hws_bwc_queue_poll(struct mlx5hws_context *ctx, in mlx5hws_bwc_queue_poll()
464 struct mlx5hws_context *ctx = bwc_matcher->matcher->tbl->ctx; in mlx5hws_bwc_rule_fill_attr()
[all …]
H A Ddebug.c221 hws_debug_dump_context_send_engine(struct seq_file *f, struct mlx5hws_context *ctx) in hws_debug_dump_context_send_engine()
270 static int hws_debug_dump_context_caps(struct seq_file *f, struct mlx5hws_context *ctx) in hws_debug_dump_context_caps()
306 static int hws_debug_dump_context_attr(struct seq_file *f, struct mlx5hws_context *ctx) in hws_debug_dump_context_attr()
321 static int hws_debug_dump_context_info(struct seq_file *f, struct mlx5hws_context *ctx) in hws_debug_dump_context_info()
348 struct mlx5hws_context *ctx, in hws_debug_dump_context_stc_resource()
362 static int hws_debug_dump_context_stc(struct seq_file *f, struct mlx5hws_context *ctx) in hws_debug_dump_context_stc()
419 static int hws_debug_dump_context(struct seq_file *f, struct mlx5hws_context *ctx) in hws_debug_dump_context()
449 hws_debug_dump(struct seq_file *f, struct mlx5hws_context *ctx) in hws_debug_dump()
469 void mlx5hws_debug_init_dump(struct mlx5hws_context *ctx) in mlx5hws_debug_init_dump()
484 void mlx5hws_debug_uninit_dump(struct mlx5hws_context *ctx) in mlx5hws_debug_uninit_dump()
H A Dvport.h7 int mlx5hws_vport_init_vports(struct mlx5hws_context *ctx);
9 void mlx5hws_vport_uninit_vports(struct mlx5hws_context *ctx);
11 int mlx5hws_vport_get_gvmi(struct mlx5hws_context *ctx, u16 vport, u16 *vport_gvmi);
H A Daction.c80 static int hws_action_get_shared_stc_nic(struct mlx5hws_context *ctx, in hws_action_get_shared_stc_nic()
147 struct mlx5hws_context *ctx = action->ctx; in hws_action_get_shared_stc()
176 struct mlx5hws_context *ctx = action->ctx; in hws_action_put_shared_stc()
197 static void hws_action_print_combo(struct mlx5hws_context *ctx, in hws_action_print_combo()
208 bool mlx5hws_action_check_combo(struct mlx5hws_context *ctx, in mlx5hws_action_check_combo()
240 hws_action_fixup_stc_attr(struct mlx5hws_context *ctx, in hws_action_fixup_stc_attr()
319 int mlx5hws_action_alloc_single_stc(struct mlx5hws_context *ctx, in mlx5hws_action_alloc_single_stc()
387 void mlx5hws_action_free_single_stc(struct mlx5hws_context *ctx, in mlx5hws_action_free_single_stc()
411 static u32 hws_action_get_mh_stc_type(struct mlx5hws_context *ctx, in hws_action_get_mh_stc_type()
555 struct mlx5hws_context *ctx = action->ctx; in hws_action_create_stcs()
[all …]
H A Dtable.c49 struct mlx5hws_context *ctx = tbl->ctx; in hws_table_up_default_fdb_miss_tbl()
88 struct mlx5hws_context *ctx = tbl->ctx; in hws_table_down_default_fdb_miss_tbl()
169 static int hws_table_init_check_hws_support(struct mlx5hws_context *ctx, in hws_table_init_check_hws_support()
182 struct mlx5hws_context *ctx = tbl->ctx; in hws_table_init()
230 struct mlx5hws_table *mlx5hws_table_create(struct mlx5hws_context *ctx, in mlx5hws_table_create()
269 struct mlx5hws_context *ctx = tbl->ctx; in mlx5hws_table_destroy()
336 int mlx5hws_table_ft_set_next_rtc(struct mlx5hws_context *ctx, in mlx5hws_table_ft_set_next_rtc()
352 int mlx5hws_table_ft_set_next_ft(struct mlx5hws_context *ctx, in mlx5hws_table_ft_set_next_ft()
470 struct mlx5hws_context *ctx = tbl->ctx; in mlx5hws_table_set_default_miss()
H A Daction.h130 struct mlx5hws_context *ctx;
210 int mlx5hws_action_get_default_stc(struct mlx5hws_context *ctx,
213 void mlx5hws_action_put_default_stc(struct mlx5hws_context *ctx,
221 bool mlx5hws_action_check_combo(struct mlx5hws_context *ctx,
225 int mlx5hws_action_alloc_single_stc(struct mlx5hws_context *ctx,
230 void mlx5hws_action_free_single_stc(struct mlx5hws_context *ctx,
H A Daction_ste_pool.h29 struct mlx5hws_context *ctx;
56 int mlx5hws_action_ste_pool_init(struct mlx5hws_context *ctx);
58 void mlx5hws_action_ste_pool_uninit(struct mlx5hws_context *ctx);
H A Dmatcher.c132 struct mlx5hws_context *ctx = tbl->ctx; in hws_matcher_connect_isolated_first()
166 struct mlx5hws_context *ctx = tbl->ctx; in hws_matcher_connect_isolated_last()
225 struct mlx5hws_context *ctx = tbl->ctx; in hws_matcher_connect()
314 struct mlx5hws_context *ctx = tbl->ctx; in hws_matcher_disconnect_isolated()
473 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_matcher_create_rtc()
574 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_matcher_check_attr_sz()
609 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_matcher_check_and_process_at()
632 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_matcher_bind_at()
687 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_matcher_bind_mt()
744 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_matcher_unbind_mt()
[all …]
H A Dfs_hws_pools.c12 mlx5_fs_dl3tnltol2_bulk_action_create(struct mlx5hws_context *ctx) in mlx5_fs_dl3tnltol2_bulk_action_create()
29 mlx5_fs_el2tol3tnl_bulk_action_create(struct mlx5hws_context *ctx, size_t data_size) in mlx5_fs_el2tol3tnl_bulk_action_create()
45 mlx5_fs_el2tol2tnl_bulk_action_create(struct mlx5hws_context *ctx, size_t data_size) in mlx5_fs_el2tol2tnl_bulk_action_create()
61 mlx5_fs_insert_hdr_bulk_action_create(struct mlx5hws_context *ctx) in mlx5_fs_insert_hdr_bulk_action_create()
81 struct mlx5hws_context *ctx; in mlx5_fs_pr_bulk_action_create()
243 mlx5_fs_mh_bulk_action_create(struct mlx5hws_context *ctx, in mlx5_fs_mh_bulk_action_create()
260 struct mlx5hws_context *ctx; in mlx5_fs_hws_mh_bulk_create()
409 struct mlx5hws_action *mlx5_fc_get_hws_action(struct mlx5hws_context *ctx, in mlx5_fc_get_hws_action()
H A Dsend.h193 void mlx5hws_send_queues_close(struct mlx5hws_context *ctx);
195 int mlx5hws_send_queues_open(struct mlx5hws_context *ctx,
199 int mlx5hws_send_queue_action(struct mlx5hws_context *ctx,
203 int mlx5hws_send_test(struct mlx5hws_context *ctx,
219 void mlx5hws_send_stes_fw(struct mlx5hws_context *ctx,
H A Dtable.h16 struct mlx5hws_context *ctx;
63 int mlx5hws_table_ft_set_next_rtc(struct mlx5hws_context *ctx,
69 int mlx5hws_table_ft_set_next_ft(struct mlx5hws_context *ctx,
H A Dbwc.h97 int mlx5hws_bwc_queue_poll(struct mlx5hws_context *ctx,
102 static inline u16 mlx5hws_bwc_queues(struct mlx5hws_context *ctx) in mlx5hws_bwc_queues()
112 static inline u16 mlx5hws_bwc_get_queue_id(struct mlx5hws_context *ctx, u16 idx) in mlx5hws_bwc_get_queue_id()
H A Dpat_arg.c215 void mlx5hws_pat_put_pattern(struct mlx5hws_context *ctx, u32 ptrn_id) in mlx5hws_pat_put_pattern()
238 int mlx5hws_pat_get_pattern(struct mlx5hws_context *ctx, in mlx5hws_pat_get_pattern()
365 int mlx5hws_arg_write_inline_arg_data(struct mlx5hws_context *ctx, in mlx5hws_arg_write_inline_arg_data()
394 bool mlx5hws_arg_is_valid_arg_request_size(struct mlx5hws_context *ctx, in mlx5hws_arg_is_valid_arg_request_size()
404 int mlx5hws_arg_create(struct mlx5hws_context *ctx, in mlx5hws_arg_create()
450 void mlx5hws_arg_destroy(struct mlx5hws_context *ctx, u32 arg_id) in mlx5hws_arg_destroy()
455 int mlx5hws_arg_create_modify_header_arg(struct mlx5hws_context *ctx, in mlx5hws_arg_create_modify_header_arg()
505 bool mlx5hws_pat_verify_actions(struct mlx5hws_context *ctx, __be64 pattern[], size_t sz) in mlx5hws_pat_verify_actions()
H A Ddebug.h39 void mlx5hws_debug_init_dump(struct mlx5hws_context *ctx);
40 void mlx5hws_debug_uninit_dump(struct mlx5hws_context *ctx);
H A Dbwc_complex.c23 hws_match_params_exceeds_definer(struct mlx5hws_context *ctx, in hws_match_params_exceeds_definer()
69 bool mlx5hws_bwc_match_params_is_complex(struct mlx5hws_context *ctx, in mlx5hws_bwc_match_params_is_complex()
217 static int hws_get_simple_params(struct mlx5hws_context *ctx, u8 match_criteria, in hws_get_simple_params()
299 hws_bwc_matcher_split_mask(struct mlx5hws_context *ctx, u8 match_criteria, in hws_bwc_matcher_split_mask()
353 struct mlx5hws_context *ctx; in hws_isolated_table_create()
538 struct mlx5hws_context *ctx = cdata->submatchers[0].tbl->ctx; in hws_complex_data_actions_init()
596 struct mlx5hws_context *ctx = table->ctx; in mlx5hws_bwc_matcher_create_complex()
805 struct mlx5hws_context *ctx; in hws_complex_subrule_destroy()
950 struct mlx5hws_context *ctx = bwc_matcher->matcher->tbl->ctx; in hws_bwc_matcher_init_move()
971 struct mlx5hws_context *ctx = bwc_matcher->matcher->tbl->ctx; in mlx5hws_bwc_matcher_complex_move()
[all …]
H A Drule.c203 struct mlx5hws_context *ctx = matcher->tbl->ctx; in mlx5hws_rule_alloc_action_ste()
231 struct mlx5hws_context *ctx = tbl->ctx; in hws_rule_create_init()
296 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_rule_create_hws()
414 struct mlx5hws_context *ctx = rule->matcher->tbl->ctx; in hws_rule_destroy_failed_hws()
449 struct mlx5hws_context *ctx = rule->matcher->tbl->ctx; in hws_rule_destroy_hws()
522 struct mlx5hws_context *ctx = rule->matcher->tbl->ctx; in hws_rule_enqueue_precheck()
612 struct mlx5hws_context *ctx = rule->matcher->tbl->ctx; in mlx5hws_rule_move_hws_add()
685 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_rule_check_outer_ip_version()
724 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_rule_check_inner_ip_version()
H A Dfs_hws.h30 struct mlx5hws_context *hws_ctx;
78 struct mlx5hws_context *hws_ctx;
H A Dpool.h70 struct mlx5hws_context *ctx;
88 mlx5hws_pool_create(struct mlx5hws_context *ctx,
H A Dsend.c352 struct mlx5hws_context *ctx = priv->rule->matcher->tbl->ctx; in hws_send_engine_dump_error_cqe()
673 int mlx5hws_send_queue_poll(struct mlx5hws_context *ctx, in mlx5hws_send_queue_poll()
835 static int hws_send_ring_open_sq(struct mlx5hws_context *ctx, in hws_send_ring_open_sq()
993 static int mlx5hws_send_ring_open(struct mlx5hws_context *ctx, in mlx5hws_send_ring_open()
1025 static int mlx5hws_send_queue_open(struct mlx5hws_context *ctx, in mlx5hws_send_queue_open()
1055 static void __hws_send_queues_close(struct mlx5hws_context *ctx, u16 queues) in __hws_send_queues_close()
1061 static void hws_send_queues_bwc_locks_destroy(struct mlx5hws_context *ctx) in hws_send_queues_bwc_locks_destroy()
1078 void mlx5hws_send_queues_close(struct mlx5hws_context *ctx) in mlx5hws_send_queues_close()
1085 static int hws_bwc_send_queues_init(struct mlx5hws_context *ctx) in hws_bwc_send_queues_init()
1120 int mlx5hws_send_queues_open(struct mlx5hws_context *ctx, in mlx5hws_send_queues_open()
[all …]

12