| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | mlx5hws.h | 7 struct mlx5hws_context; 246 struct mlx5hws_context * 257 int mlx5hws_context_close(struct mlx5hws_context *ctx); 267 void mlx5hws_context_set_peer(struct mlx5hws_context *ctx, 268 struct mlx5hws_context *peer_ctx, 281 mlx5hws_table_create(struct mlx5hws_context *ctx, 327 mlx5hws_match_template_create(struct mlx5hws_context *ctx, 628 mlx5hws_action_create_counter(struct mlx5hws_context *ctx, 804 int mlx5hws_send_queue_poll(struct mlx5hws_context *ctx, 818 int mlx5hws_send_queue_action(struct mlx5hws_context *ctx, [all …]
|
| H A D | context.c | 6 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() 58 static void hws_context_pools_uninit(struct mlx5hws_context *ctx) in hws_context_pools_uninit() 67 static int hws_context_init_pd(struct mlx5hws_context *ctx) in hws_context_init_pd() 82 static int hws_context_uninit_pd(struct mlx5hws_context *ctx) in hws_context_uninit_pd() 135 static int hws_context_init_hws(struct mlx5hws_context *ctx, in hws_context_init_hws() 186 struct mlx5hws_context *ctx; in mlx5hws_context_open() 229 int mlx5hws_context_close(struct mlx5hws_context *ctx) in mlx5hws_context_close() 241 void mlx5hws_context_set_peer(struct mlx5hws_context *ctx, in mlx5hws_context_set_peer() [all …]
|
| H A D | pat_arg.h | 52 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 D | context.h | 37 struct mlx5hws_context { struct 57 static inline bool mlx5hws_context_bwc_supported(struct mlx5hws_context *ctx) in mlx5hws_context_bwc_supported() argument 62 static inline bool mlx5hws_context_native_supported(struct mlx5hws_context *ctx) in mlx5hws_context_native_supported() 67 bool mlx5hws_context_cap_dynamic_reparse(struct mlx5hws_context *ctx); 69 u8 mlx5hws_context_get_reparse_mode(struct mlx5hws_context *ctx);
|
| H A D | vport.c | 6 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 D | vport.h | 7 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 D | bwc.c | 6 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() 74 struct mlx5hws_context *ctx = table->ctx; in mlx5hws_bwc_matcher_create_simple() 217 static int hws_bwc_queue_poll(struct mlx5hws_context *ctx, in hws_bwc_queue_poll() 275 struct mlx5hws_context *ctx = bwc_matcher->matcher->tbl->ctx; in mlx5hws_bwc_rule_fill_attr() 372 struct mlx5hws_context *ctx = bwc_matcher->matcher->tbl->ctx; in mlx5hws_bwc_rule_destroy_simple() 448 struct mlx5hws_context *ctx = bwc_matcher->matcher->tbl->ctx; in hws_bwc_rule_update_sync() [all …]
|
| H A D | debug.c | 241 hws_debug_dump_context_send_engine(struct seq_file *f, struct mlx5hws_context *ctx) in hws_debug_dump_context_send_engine() 290 static int hws_debug_dump_context_caps(struct seq_file *f, struct mlx5hws_context *ctx) in hws_debug_dump_context_caps() 326 static int hws_debug_dump_context_attr(struct seq_file *f, struct mlx5hws_context *ctx) in hws_debug_dump_context_attr() 341 static int hws_debug_dump_context_info(struct seq_file *f, struct mlx5hws_context *ctx) in hws_debug_dump_context_info() 368 struct mlx5hws_context *ctx, in hws_debug_dump_context_stc_resource() 382 static int hws_debug_dump_context_stc(struct seq_file *f, struct mlx5hws_context *ctx) in hws_debug_dump_context_stc() 405 static int hws_debug_dump_context(struct seq_file *f, struct mlx5hws_context *ctx) in hws_debug_dump_context() 432 hws_debug_dump(struct seq_file *f, struct mlx5hws_context *ctx) in hws_debug_dump() 452 void mlx5hws_debug_init_dump(struct mlx5hws_context *ctx) in mlx5hws_debug_init_dump() 467 void mlx5hws_debug_uninit_dump(struct mlx5hws_context *ctx) in mlx5hws_debug_uninit_dump()
|
| H A D | action.h | 124 struct mlx5hws_context *ctx; 204 int mlx5hws_action_get_default_stc(struct mlx5hws_context *ctx, 207 void mlx5hws_action_put_default_stc(struct mlx5hws_context *ctx, 215 bool mlx5hws_action_check_combo(struct mlx5hws_context *ctx, 219 int mlx5hws_action_alloc_single_stc(struct mlx5hws_context *ctx, 224 void mlx5hws_action_free_single_stc(struct mlx5hws_context *ctx,
|
| H A D | action.c | 142 struct mlx5hws_context *ctx = action->ctx; in hws_action_get_shared_stc() 171 struct mlx5hws_context *ctx = action->ctx; in hws_action_put_shared_stc() 203 bool mlx5hws_action_check_combo(struct mlx5hws_context *ctx, in mlx5hws_action_check_combo() 235 hws_action_fixup_stc_attr(struct mlx5hws_context *ctx, in hws_action_fixup_stc_attr() 551 struct mlx5hws_context *ctx = action->ctx; in hws_action_create_stcs() 580 struct mlx5hws_context *ctx = action->ctx; in hws_action_destroy_stcs() 645 hws_action_create_generic(struct mlx5hws_context *ctx, in hws_action_create_generic() 749 hws_action_create_aso(struct mlx5hws_context *ctx, in hws_action_create_aso() 787 mlx5hws_action_create_counter(struct mlx5hws_context *ctx, in mlx5hws_action_create_counter() 1049 struct mlx5hws_context *ctx = action->ctx; in hws_action_handle_tunnel_l3_to_l2() [all …]
|
| H A D | table.c | 46 struct mlx5hws_context *ctx = tbl->ctx; in hws_table_up_default_fdb_miss_tbl() 85 struct mlx5hws_context *ctx = tbl->ctx; in hws_table_down_default_fdb_miss_tbl() 166 static int hws_table_init_check_hws_support(struct mlx5hws_context *ctx, in hws_table_init_check_hws_support() 179 struct mlx5hws_context *ctx = tbl->ctx; in hws_table_init() 224 struct mlx5hws_table *mlx5hws_table_create(struct mlx5hws_context *ctx, in mlx5hws_table_create() 262 struct mlx5hws_context *ctx = tbl->ctx; in mlx5hws_table_destroy() 329 int mlx5hws_table_ft_set_next_rtc(struct mlx5hws_context *ctx, in mlx5hws_table_ft_set_next_rtc() 345 static int hws_table_ft_set_next_ft(struct mlx5hws_context *ctx, in hws_table_ft_set_next_ft() 463 struct mlx5hws_context *ctx = tbl->ctx; in mlx5hws_table_set_default_miss()
|
| H A D | fs_hws_pools.c | 12 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() 241 mlx5_fs_mh_bulk_action_create(struct mlx5hws_context *ctx, in mlx5_fs_mh_bulk_action_create() 258 struct mlx5hws_context *ctx; in mlx5_fs_hws_mh_bulk_create() 405 struct mlx5hws_action *mlx5_fc_get_hws_action(struct mlx5hws_context *ctx, in mlx5_fc_get_hws_action()
|
| H A D | send.h | 192 void mlx5hws_send_queues_close(struct mlx5hws_context *ctx); 194 int mlx5hws_send_queues_open(struct mlx5hws_context *ctx, 198 int mlx5hws_send_queue_action(struct mlx5hws_context *ctx, 202 int mlx5hws_send_test(struct mlx5hws_context *ctx, 218 void mlx5hws_send_stes_fw(struct mlx5hws_context *ctx,
|
| H A D | debug.h | 37 void mlx5hws_debug_init_dump(struct mlx5hws_context *ctx); 38 void mlx5hws_debug_uninit_dump(struct mlx5hws_context *ctx);
|
| H A D | pat_arg.c | 215 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 D | matcher.c | 61 struct mlx5hws_context *ctx = tbl->ctx; in hws_matcher_connect() 225 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_matcher_create_rtc() 437 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_matcher_check_and_process_at() 528 struct mlx5hws_context *ctx = tbl->ctx; in hws_matcher_bind_at() 624 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_matcher_bind_mt() 673 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_matcher_validate_insert_mode() 802 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_matcher_create_col_matcher() 869 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_matcher_init() 898 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_matcher_uninit() 912 struct mlx5hws_context *ctx = matcher->tbl->ctx; in mlx5hws_matcher_attach_at() [all …]
|
| H A D | table.h | 16 struct mlx5hws_context *ctx; 62 int mlx5hws_table_ft_set_next_rtc(struct mlx5hws_context *ctx,
|
| H A D | bwc.h | 68 static inline u16 mlx5hws_bwc_queues(struct mlx5hws_context *ctx) in mlx5hws_bwc_queues() 78 static inline u16 mlx5hws_bwc_get_queue_id(struct mlx5hws_context *ctx, u16 idx) in mlx5hws_bwc_get_queue_id()
|
| H A D | fs_hws.h | 30 struct mlx5hws_context *hws_ctx; 73 struct mlx5hws_context *hws_ctx;
|
| H A D | definer.h | 262 struct mlx5hws_context *ctx; 805 int mlx5hws_definer_mt_init(struct mlx5hws_context *ctx, 808 void mlx5hws_definer_mt_uninit(struct mlx5hws_context *ctx, 818 int mlx5hws_definer_get_obj(struct mlx5hws_context *ctx, 821 void mlx5hws_definer_free(struct mlx5hws_context *ctx, 824 int mlx5hws_definer_calc_layout(struct mlx5hws_context *ctx, 829 mlx5hws_definer_conv_match_params_to_compressed_fc(struct mlx5hws_context *ctx,
|
| H A D | pool.h | 109 struct mlx5hws_context *ctx; 127 mlx5hws_pool_create(struct mlx5hws_context *ctx,
|
| H A D | fs_hws.c | 15 mlx5_fs_create_action_remove_header_vlan(struct mlx5hws_context *ctx); 29 struct mlx5hws_context *ctx = fs_ctx->hws_ctx; in mlx5_fs_init_hws_actions_pool() 164 struct mlx5hws_context *peer_ctx = NULL; in mlx5_cmd_hws_set_peer() 246 struct mlx5hws_context *ctx = ns->fs_hws_context.hws_ctx; in mlx5_cmd_hws_create_flow_table() 403 struct mlx5hws_context *ctx = fs_ctx->hws_ctx; in mlx5_fs_create_dest_action_table_num() 416 struct mlx5hws_context *ctx = fs_ctx->hws_ctx; in mlx5_fs_get_dest_action_vport() 456 mlx5_fs_create_dest_action_range(struct mlx5hws_context *ctx, in mlx5_fs_create_dest_action_range() 504 struct mlx5hws_context *ctx = fs_ctx->hws_ctx; in mlx5_fs_get_action_aso_meter() 540 struct mlx5hws_context *ctx = fs_ctx->hws_ctx; in mlx5_fs_get_dest_action_sampler() 624 mlx5_fs_create_action_last(struct mlx5hws_context *ctx) in mlx5_fs_create_action_last() [all …]
|
| H A D | send.c | 557 int mlx5hws_send_queue_poll(struct mlx5hws_context *ctx, in mlx5hws_send_queue_poll() 719 static int hws_send_ring_open_sq(struct mlx5hws_context *ctx, in hws_send_ring_open_sq() 885 static int mlx5hws_send_ring_open(struct mlx5hws_context *ctx, in mlx5hws_send_ring_open() 917 static int mlx5hws_send_queue_open(struct mlx5hws_context *ctx, in mlx5hws_send_queue_open() 948 static void __hws_send_queues_close(struct mlx5hws_context *ctx, u16 queues) in __hws_send_queues_close() 954 static void hws_send_queues_bwc_locks_destroy(struct mlx5hws_context *ctx) in hws_send_queues_bwc_locks_destroy() 971 void mlx5hws_send_queues_close(struct mlx5hws_context *ctx) in mlx5hws_send_queues_close() 978 static int hws_bwc_send_queues_init(struct mlx5hws_context *ctx) in hws_bwc_send_queues_init() 1015 int mlx5hws_send_queues_open(struct mlx5hws_context *ctx, in mlx5hws_send_queues_open() 1061 int mlx5hws_send_queue_action(struct mlx5hws_context *ctx, in mlx5hws_send_queue_action() [all …]
|
| H A D | rule.c | 245 struct mlx5hws_context *ctx = tbl->ctx; in hws_rule_create_init() 318 struct mlx5hws_context *ctx = matcher->tbl->ctx; in hws_rule_create_hws() 429 struct mlx5hws_context *ctx = rule->matcher->tbl->ctx; in hws_rule_destroy_failed_hws() 464 struct mlx5hws_context *ctx = rule->matcher->tbl->ctx; in hws_rule_destroy_hws() 537 struct mlx5hws_context *ctx = rule->matcher->tbl->ctx; in hws_rule_enqueue_precheck() 627 struct mlx5hws_context *ctx = rule->matcher->tbl->ctx; in mlx5hws_rule_move_hws_add()
|
| H A D | bwc_complex.h | 7 bool mlx5hws_bwc_match_params_is_complex(struct mlx5hws_context *ctx,
|