Home
last modified time | relevance | path

Searched defs:esw (Results 1 – 25 of 49) sorted by relevance

12

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads.c77 static struct mlx5_eswitch_rep *mlx5_eswitch_get_rep(struct mlx5_eswitch *esw, in mlx5_eswitch_get_rep() argument
84 mlx5_eswitch_set_rule_flow_source(struct mlx5_eswitch *esw, in mlx5_eswitch_set_rule_flow_source() argument
106 mlx5_eswitch_clear_rule_source_port(struct mlx5_eswitch *esw, struct mlx5_flow_spec *spec) in mlx5_eswitch_clear_rule_source_port() argument
123 mlx5_eswitch_set_rule_source_port(struct mlx5_eswitch *esw, in mlx5_eswitch_set_rule_source_port() argument
176 esw_setup_decap_indir(struct mlx5_eswitch * esw,struct mlx5_flow_attr * attr) esw_setup_decap_indir() argument
190 esw_cleanup_decap_indir(struct mlx5_eswitch * esw,struct mlx5_flow_attr * attr) esw_cleanup_decap_indir() argument
230 esw_setup_ft_dest(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_flow_attr * attr,int i) esw_setup_ft_dest() argument
255 esw_setup_slow_path_dest(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,int i) esw_setup_slow_path_dest() argument
282 esw_put_dest_tables_loop(struct mlx5_eswitch * esw,struct mlx5_flow_attr * attr,int from,int to) esw_put_dest_tables_loop() argument
298 esw_is_chain_src_port_rewrite(struct mlx5_eswitch * esw,struct mlx5_esw_flow_attr * esw_attr) esw_is_chain_src_port_rewrite() argument
311 esw_setup_chain_src_port_rewrite(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_fs_chains * chains,struct mlx5_flow_attr * attr,int * i) esw_setup_chain_src_port_rewrite() argument
341 esw_cleanup_chain_src_port_rewrite(struct mlx5_eswitch * esw,struct mlx5_flow_attr * attr) esw_cleanup_chain_src_port_rewrite() argument
350 esw_is_indir_table(struct mlx5_eswitch * esw,struct mlx5_flow_attr * attr) esw_is_indir_table() argument
377 esw_setup_indir_table(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_flow_attr * attr,int * i) esw_setup_indir_table() argument
412 esw_cleanup_indir_table(struct mlx5_eswitch * esw,struct mlx5_flow_attr * attr) esw_cleanup_indir_table() argument
431 esw_setup_uplink_fwd_ipsec_needed(struct mlx5_eswitch * esw,struct mlx5_esw_flow_attr * esw_attr,int attr_idx) esw_setup_uplink_fwd_ipsec_needed() argument
447 esw_flow_dests_fwd_ipsec_check(struct mlx5_eswitch * esw,struct mlx5_esw_flow_attr * esw_attr) esw_flow_dests_fwd_ipsec_check() argument
469 esw_setup_dest_fwd_vport(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_esw_flow_attr * esw_attr,int attr_idx,int dest_idx,bool pkt_reformat) esw_setup_dest_fwd_vport() argument
494 esw_setup_dest_fwd_ipsec(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_esw_flow_attr * esw_attr,int attr_idx,int dest_idx,bool pkt_reformat) esw_setup_dest_fwd_ipsec() argument
508 esw_setup_vport_dest(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_esw_flow_attr * esw_attr,int attr_idx,int dest_idx,bool pkt_reformat) esw_setup_vport_dest() argument
521 esw_setup_vport_dests(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_esw_flow_attr * esw_attr,int i) esw_setup_vport_dests() argument
532 esw_src_port_rewrite_supported(struct mlx5_eswitch * esw) esw_src_port_rewrite_supported() argument
569 esw_setup_dests(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_flow_attr * attr,struct mlx5_flow_spec * spec,int * i) esw_setup_dests() argument
626 esw_cleanup_dests(struct mlx5_eswitch * esw,struct mlx5_flow_attr * attr) esw_cleanup_dests() argument
660 mlx5_eswitch_add_offloaded_rule(struct mlx5_eswitch * esw,struct mlx5_flow_spec * spec,struct mlx5_flow_attr * attr) mlx5_eswitch_add_offloaded_rule() argument
797 mlx5_eswitch_add_fwd_rule(struct mlx5_eswitch * esw,struct mlx5_flow_spec * spec,struct mlx5_flow_attr * attr) mlx5_eswitch_add_fwd_rule() argument
879 __mlx5_eswitch_del_rule(struct mlx5_eswitch * esw,struct mlx5_flow_handle * rule,struct mlx5_flow_attr * attr,bool fwd_rule) __mlx5_eswitch_del_rule() argument
922 mlx5_eswitch_del_offloaded_rule(struct mlx5_eswitch * esw,struct mlx5_flow_handle * rule,struct mlx5_flow_attr * attr) mlx5_eswitch_del_offloaded_rule() argument
930 mlx5_eswitch_del_fwd_rule(struct mlx5_eswitch * esw,struct mlx5_flow_handle * rule,struct mlx5_flow_attr * attr) mlx5_eswitch_del_fwd_rule() argument
1040 mlx5_eswitch_add_send_to_vport_meta_rule(struct mlx5_eswitch * esw,u16 vport_num) mlx5_eswitch_add_send_to_vport_meta_rule() argument
1076 mlx5_eswitch_reg_c1_loopback_supported(struct mlx5_eswitch * esw) mlx5_eswitch_reg_c1_loopback_supported() argument
1082 esw_set_passing_vport_metadata(struct mlx5_eswitch * esw,bool enable) esw_set_passing_vport_metadata() argument
1127 peer_miss_rules_setup(struct mlx5_eswitch * esw,struct mlx5_core_dev * peer_dev,struct mlx5_flow_spec * spec,struct mlx5_flow_destination * dest) peer_miss_rules_setup() argument
1163 esw_set_peer_miss_rule_source_port(struct mlx5_eswitch * esw,struct mlx5_eswitch * peer_esw,struct mlx5_flow_spec * spec,u16 vport) esw_set_peer_miss_rule_source_port() argument
1183 esw_add_fdb_peer_miss_rules(struct mlx5_eswitch * esw,struct mlx5_core_dev * peer_dev) esw_add_fdb_peer_miss_rules() argument
1318 esw_del_fdb_peer_miss_rules(struct mlx5_eswitch * esw,struct mlx5_core_dev * peer_dev) esw_del_fdb_peer_miss_rules() argument
1356 esw_add_fdb_miss_rule(struct mlx5_eswitch * esw) esw_add_fdb_miss_rule() argument
1417 esw_add_restore_rule(struct mlx5_eswitch * esw,u32 tag) esw_add_restore_rule() argument
1467 mlx5_esw_set_flow_group_source_port(struct mlx5_eswitch * esw,u32 * flow_group_in,int match_params) mlx5_esw_set_flow_group_source_port() argument
1494 esw_vport_tbl_put(struct mlx5_eswitch * esw) esw_vport_tbl_put() argument
1509 esw_vport_tbl_get(struct mlx5_eswitch * esw) esw_vport_tbl_get() argument
1532 fdb_modify_header_fwd_to_table_supported(esw) global() argument
1534 esw_init_chains_offload_flags(struct mlx5_eswitch * esw,u32 * flags) esw_init_chains_offload_flags() argument
1565 esw_chains_create(struct mlx5_eswitch * esw,struct mlx5_flow_table * miss_fdb) esw_chains_create() argument
1628 esw_chains_destroy(struct mlx5_eswitch * esw,struct mlx5_fs_chains * chains) esw_chains_destroy() argument
1640 esw_chains_create(struct mlx5_eswitch * esw,struct mlx5_flow_table * miss_fdb) esw_chains_create() argument
1644 esw_chains_destroy(struct mlx5_eswitch * esw,struct mlx5_fs_chains * chains) esw_chains_destroy() argument
1650 esw_create_send_to_vport_group(struct mlx5_eswitch * esw,struct mlx5_flow_table * fdb,u32 * flow_group_in,int * ix) esw_create_send_to_vport_group() argument
1694 esw_create_meta_send_to_vport_group(struct mlx5_eswitch * esw,struct mlx5_flow_table * fdb,u32 * flow_group_in,int * ix) esw_create_meta_send_to_vport_group() argument
1741 esw_create_peer_esw_miss_group(struct mlx5_eswitch * esw,struct mlx5_flow_table * fdb,u32 * flow_group_in,int * ix) esw_create_peer_esw_miss_group() argument
1789 esw_create_miss_group(struct mlx5_eswitch * esw,struct mlx5_flow_table * fdb,u32 * flow_group_in,int * ix) esw_create_miss_group() argument
1834 esw_create_offloads_fdb_tables(struct mlx5_eswitch * esw) esw_create_offloads_fdb_tables() argument
1958 esw_destroy_offloads_fdb_tables(struct mlx5_eswitch * esw) esw_destroy_offloads_fdb_tables() argument
1982 esw_get_nr_ft_offloads_steering_src_ports(struct mlx5_eswitch * esw) esw_get_nr_ft_offloads_steering_src_ports() argument
1993 esw_create_offloads_table(struct mlx5_eswitch * esw) esw_create_offloads_table() argument
2022 esw_destroy_offloads_table(struct mlx5_eswitch * esw) esw_destroy_offloads_table() argument
2029 esw_create_vport_rx_group(struct mlx5_eswitch * esw) esw_create_vport_rx_group() argument
2061 esw_destroy_vport_rx_group(struct mlx5_eswitch * esw) esw_destroy_vport_rx_group() argument
2066 esw_create_vport_rx_drop_rule_index(struct mlx5_eswitch * esw) esw_create_vport_rx_drop_rule_index() argument
2075 esw_create_vport_rx_drop_group(struct mlx5_eswitch * esw) esw_create_vport_rx_drop_group() argument
2106 esw_destroy_vport_rx_drop_group(struct mlx5_eswitch * esw) esw_destroy_vport_rx_drop_group() argument
2113 mlx5_esw_set_spec_source_port(struct mlx5_eswitch * esw,u16 vport,struct mlx5_flow_spec * spec) mlx5_esw_set_spec_source_port() argument
2141 mlx5_eswitch_create_vport_rx_rule(struct mlx5_eswitch * esw,u16 vport,struct mlx5_flow_destination * dest) mlx5_eswitch_create_vport_rx_rule() argument
2171 esw_create_vport_rx_drop_rule(struct mlx5_eswitch * esw) esw_create_vport_rx_drop_rule() argument
2191 esw_destroy_vport_rx_drop_rule(struct mlx5_eswitch * esw) esw_destroy_vport_rx_drop_rule() argument
2197 mlx5_eswitch_inline_mode_get(struct mlx5_eswitch * esw,u8 * mode) mlx5_eswitch_inline_mode_get() argument
2235 esw_destroy_restore_table(struct mlx5_eswitch * esw) esw_destroy_restore_table() argument
2247 esw_create_restore_table(struct mlx5_eswitch * esw) esw_create_restore_table() argument
2338 esw_mode_change(struct mlx5_eswitch * esw,u16 mode) esw_mode_change() argument
2357 mlx5_esw_fdb_drop_destroy(struct mlx5_eswitch * esw) mlx5_esw_fdb_drop_destroy() argument
2372 mlx5_esw_fdb_drop_create(struct mlx5_eswitch * esw) mlx5_esw_fdb_drop_create() argument
2441 mlx5_esw_fdb_active(struct mlx5_eswitch * esw) mlx5_esw_fdb_active() argument
2461 mlx5_esw_fdb_inactive(struct mlx5_eswitch * esw) mlx5_esw_fdb_inactive() argument
2482 esw_offloads_start(struct mlx5_eswitch * esw,struct netlink_ext_ack * extack) esw_offloads_start() argument
2506 mlx5_esw_offloads_rep_remove(struct mlx5_eswitch * esw,const struct mlx5_vport * vport) mlx5_esw_offloads_rep_remove() argument
2518 mlx5_esw_offloads_rep_add(struct mlx5_eswitch * esw,const struct mlx5_vport * vport) mlx5_esw_offloads_rep_add() argument
2555 mlx5_esw_offloads_rep_cleanup(struct mlx5_eswitch * esw,struct mlx5_eswitch_rep * rep) mlx5_esw_offloads_rep_cleanup() argument
2562 esw_offloads_cleanup_reps(struct mlx5_eswitch * esw) esw_offloads_cleanup_reps() argument
2572 esw_offloads_init_reps(struct mlx5_eswitch * esw) esw_offloads_init_reps() argument
2597 struct mlx5_eswitch *esw = dev->priv.eswitch; esw_port_metadata_set() local
2653 esw_offloads_init(struct mlx5_eswitch * esw) esw_offloads_init() argument
2678 esw_offloads_cleanup(struct mlx5_eswitch * esw) esw_offloads_cleanup() argument
2686 __esw_offloads_load_rep(struct mlx5_eswitch * esw,struct mlx5_eswitch_rep * rep,u8 rep_type) __esw_offloads_load_rep() argument
2696 __esw_offloads_unload_rep(struct mlx5_eswitch * esw,struct mlx5_eswitch_rep * rep,u8 rep_type) __esw_offloads_unload_rep() argument
2707 __unload_reps_all_vport(struct mlx5_eswitch * esw,u8 rep_type) __unload_reps_all_vport() argument
2716 mlx5_esw_offloads_rep_load(struct mlx5_eswitch * esw,u16 vport_num) mlx5_esw_offloads_rep_load() argument
2738 mlx5_esw_offloads_rep_unload(struct mlx5_eswitch * esw,u16 vport_num) mlx5_esw_offloads_rep_unload() argument
2748 mlx5_esw_offloads_init_pf_vf_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_init_pf_vf_rep() argument
2756 mlx5_esw_offloads_cleanup_pf_vf_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_cleanup_pf_vf_rep() argument
2764 mlx5_esw_offloads_init_sf_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport,struct mlx5_devlink_port * dl_port,u32 controller,u32 sfnum) mlx5_esw_offloads_init_sf_rep() argument
2771 mlx5_esw_offloads_cleanup_sf_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_cleanup_sf_rep() argument
2776 mlx5_esw_offloads_load_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_load_rep() argument
2797 mlx5_esw_offloads_unload_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_unload_rep() argument
2897 esw_master_egress_create_resources(struct mlx5_eswitch * esw,struct mlx5_flow_namespace * egress_ns,struct mlx5_vport * vport,size_t count) esw_master_egress_create_resources() argument
2976 struct mlx5_eswitch *esw = master->priv.eswitch; esw_set_master_egress_rule() local
3061 mlx5_esw_offloads_rep_event_unpair(struct mlx5_eswitch * esw,struct mlx5_eswitch * peer_esw) mlx5_esw_offloads_rep_event_unpair() argument
3080 mlx5_esw_offloads_unpair(struct mlx5_eswitch * esw,struct mlx5_eswitch * peer_esw) mlx5_esw_offloads_unpair() argument
3090 mlx5_esw_offloads_pair(struct mlx5_eswitch * esw,struct mlx5_eswitch * peer_esw) mlx5_esw_offloads_pair() argument
3122 mlx5_esw_offloads_set_ns_peer(struct mlx5_eswitch * esw,struct mlx5_eswitch * peer_esw,bool pair) mlx5_esw_offloads_set_ns_peer() argument
3157 struct mlx5_eswitch *esw = my_data; mlx5_esw_offloads_devcom_event() local
3233 mlx5_esw_offloads_devcom_init(struct mlx5_eswitch * esw,const struct mlx5_devcom_match_attr * attr) mlx5_esw_offloads_devcom_init() argument
3265 mlx5_esw_offloads_devcom_cleanup(struct mlx5_eswitch * esw) mlx5_esw_offloads_devcom_cleanup() argument
3280 mlx5_esw_offloads_devcom_is_ready(struct mlx5_eswitch * esw) mlx5_esw_offloads_devcom_is_ready() argument
3285 mlx5_esw_vport_match_metadata_supported(const struct mlx5_eswitch * esw) mlx5_esw_vport_match_metadata_supported() argument
3305 mlx5_esw_match_metadata_reserved(struct mlx5_eswitch * esw) mlx5_esw_match_metadata_reserved() argument
3310 mlx5_esw_match_metadata_alloc(struct mlx5_eswitch * esw) mlx5_esw_match_metadata_alloc() argument
3334 mlx5_esw_match_metadata_free(struct mlx5_eswitch * esw,u32 metadata) mlx5_esw_match_metadata_free() argument
3342 esw_offloads_vport_metadata_setup(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_offloads_vport_metadata_setup() argument
3354 esw_offloads_vport_metadata_cleanup(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_offloads_vport_metadata_cleanup() argument
3367 esw_offloads_metadata_uninit(struct mlx5_eswitch * esw) esw_offloads_metadata_uninit() argument
3379 esw_offloads_metadata_init(struct mlx5_eswitch * esw) esw_offloads_metadata_init() argument
3402 esw_vport_create_offloads_acl_tables(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_create_offloads_acl_tables() argument
3423 esw_vport_destroy_offloads_acl_tables(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_destroy_offloads_acl_tables() argument
3430 esw_create_offloads_acl_tables(struct mlx5_eswitch * esw) esw_create_offloads_acl_tables() argument
3460 esw_destroy_offloads_acl_tables(struct mlx5_eswitch * esw) esw_destroy_offloads_acl_tables() argument
3473 mlx5_eswitch_reload_ib_reps(struct mlx5_eswitch * esw) mlx5_eswitch_reload_ib_reps() argument
3498 esw_offloads_steering_init(struct mlx5_eswitch * esw) esw_offloads_steering_init() argument
3564 esw_offloads_steering_cleanup(struct mlx5_eswitch * esw) esw_offloads_steering_cleanup() argument
3582 esw_vfs_changed_event_handler(struct mlx5_eswitch * esw,int work_gen,const u32 * out) esw_vfs_changed_event_handler() argument
3625 struct mlx5_eswitch *esw; esw_functions_changed_event_handler() local
3645 struct mlx5_eswitch *esw; mlx5_esw_funcs_changed_handler() local
3663 mlx5_esw_host_number_init(struct mlx5_eswitch * esw) mlx5_esw_host_number_init() argument
3681 mlx5_esw_offloads_controller_valid(const struct mlx5_eswitch * esw,u32 controller) mlx5_esw_offloads_controller_valid() argument
3694 esw_offloads_enable(struct mlx5_eswitch * esw) esw_offloads_enable() argument
3781 esw_offloads_stop(struct mlx5_eswitch * esw,struct netlink_ext_ack * extack) esw_offloads_stop() argument
3801 esw_offloads_disable(struct mlx5_eswitch * esw) esw_offloads_disable() argument
3834 esw_mode_to_devlink(struct mlx5_eswitch * esw,u16 * mode) esw_mode_to_devlink() argument
3899 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_eswitch_block_mode() local
3917 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_eswitch_unblock_mode() local
3951 mlx5_devlink_switchdev_active_mode_change(struct mlx5_eswitch * esw,u16 devlink_mode) mlx5_devlink_switchdev_active_mode_change() argument
4019 struct mlx5_eswitch *esw; mlx5_devlink_eswitch_mode_set() local
4109 struct mlx5_eswitch *esw; mlx5_devlink_eswitch_mode_get() local
4118 mlx5_esw_vports_inline_set(struct mlx5_eswitch * esw,u8 mlx5_mode,struct netlink_ext_ack * extack) mlx5_esw_vports_inline_set() argument
4172 struct mlx5_eswitch *esw; mlx5_devlink_eswitch_inline_mode_set() local
4228 struct mlx5_eswitch *esw; mlx5_devlink_eswitch_inline_mode_get() local
4239 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_eswitch_block_encap() local
4260 struct mlx5_eswitch *esw = dev->priv.eswitch; mlx5_eswitch_unblock_encap() local
4275 struct mlx5_eswitch *esw; mlx5_devlink_eswitch_encap_mode_set() local
4345 struct mlx5_eswitch *esw; mlx5_devlink_eswitch_encap_mode_get() local
4356 mlx5_eswitch_vport_has_rep(const struct mlx5_eswitch * esw,u16 vport_num) mlx5_eswitch_vport_has_rep() argument
4371 mlx5_eswitch_register_vport_reps(struct mlx5_eswitch * esw,const struct mlx5_eswitch_rep_ops * ops,u8 rep_type) mlx5_eswitch_register_vport_reps() argument
4390 mlx5_eswitch_unregister_vport_reps(struct mlx5_eswitch * esw,u8 rep_type) mlx5_eswitch_unregister_vport_reps() argument
4403 mlx5_eswitch_get_uplink_priv(struct mlx5_eswitch * esw,u8 rep_type) mlx5_eswitch_get_uplink_priv() argument
4411 mlx5_eswitch_get_proto_dev(struct mlx5_eswitch * esw,u16 vport,u8 rep_type) mlx5_eswitch_get_proto_dev() argument
4426 mlx5_eswitch_uplink_get_proto_dev(struct mlx5_eswitch * esw,u8 rep_type) mlx5_eswitch_uplink_get_proto_dev() argument
4432 mlx5_eswitch_vport_rep(struct mlx5_eswitch * esw,u16 vport) mlx5_eswitch_vport_rep() argument
4439 mlx5_eswitch_reg_c1_loopback_enabled(const struct mlx5_eswitch * esw) mlx5_eswitch_reg_c1_loopback_enabled() argument
4445 mlx5_eswitch_vport_match_metadata_enabled(const struct mlx5_eswitch * esw) mlx5_eswitch_vport_match_metadata_enabled() argument
4451 mlx5_eswitch_get_vport_metadata_for_match(struct mlx5_eswitch * esw,u16 vport_num) mlx5_eswitch_get_vport_metadata_for_match() argument
4463 mlx5_esw_vport_vhca_id_map(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_vhca_id_map() argument
4494 mlx5_esw_vport_vhca_id_unmap(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_vhca_id_unmap() argument
4503 mlx5_eswitch_vhca_id_to_vport(struct mlx5_eswitch * esw,u16 vhca_id,u16 * vport_num) mlx5_eswitch_vhca_id_to_vport() argument
4514 mlx5_eswitch_get_vport_metadata_for_set(struct mlx5_eswitch * esw,u16 vport_num) mlx5_eswitch_get_vport_metadata_for_set() argument
4530 struct mlx5_eswitch *esw = mlx5_devlink_eswitch_nocheck_get(port->devlink); mlx5_devlink_port_fn_hw_addr_get() local
4547 struct mlx5_eswitch *esw = mlx5_devlink_eswitch_nocheck_get(port->devlink); mlx5_devlink_port_fn_hw_addr_set() local
4556 struct mlx5_eswitch *esw = mlx5_devlink_eswitch_nocheck_get(port->devlink); mlx5_devlink_port_fn_migratable_get() local
4578 struct mlx5_eswitch *esw = mlx5_devlink_eswitch_nocheck_get(port->devlink); mlx5_devlink_port_fn_migratable_set() local
4637 struct mlx5_eswitch *esw = mlx5_devlink_eswitch_nocheck_get(port->devlink); mlx5_devlink_port_fn_roce_get() local
4654 struct mlx5_eswitch *esw = mlx5_devlink_eswitch_nocheck_get(port->devlink); mlx5_devlink_port_fn_roce_set() local
4762 mlx5_eswitch_restore_ipsec_rule(struct mlx5_eswitch * esw,struct mlx5_flow_handle * rule,struct mlx5_esw_flow_attr * esw_attr,int attr_idx) mlx5_eswitch_restore_ipsec_rule() argument
4781 struct mlx5_eswitch *esw; mlx5_devlink_port_fn_ipsec_crypto_get() local
4811 struct mlx5_eswitch *esw; mlx5_devlink_port_fn_ipsec_crypto_set() local
4864 struct mlx5_eswitch *esw; mlx5_devlink_port_fn_ipsec_packet_get() local
4895 struct mlx5_eswitch *esw; mlx5_devlink_port_fn_ipsec_packet_set() local
4953 struct mlx5_eswitch *esw; mlx5_devlink_port_fn_max_io_eqs_get() local
5003 struct mlx5_eswitch *esw; mlx5_devlink_port_fn_max_io_eqs_set() local
[all...]
H A Deswitch.c107 mlx5_eswitch_get_vport(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_eswitch_get_vport()
207 __esw_fdb_set_vport_rule(struct mlx5_eswitch *esw, u16 vport, bool rx_rule, in __esw_fdb_set_vport_rule()
270 esw_fdb_set_vport_rule(struct mlx5_eswitch *esw, u8 mac[ETH_ALEN], u16 vport) in esw_fdb_set_vport_rule()
279 esw_fdb_set_vport_allmulti_rule(struct mlx5_eswitch *esw, u16 vport) in esw_fdb_set_vport_allmulti_rule()
292 esw_fdb_set_vport_promisc_rule(struct mlx5_eswitch *esw, u16 vport) in esw_fdb_set_vport_promisc_rule()
306 static int esw_add_uc_addr(struct mlx5_eswitch *esw, struct vport_addr *vaddr) in esw_add_uc_addr()
339 static int esw_del_uc_addr(struct mlx5_eswitch *esw, struct vport_addr *vaddr) in esw_del_uc_addr()
366 static void update_allmulti_vports(struct mlx5_eswitch *esw, in update_allmulti_vports()
415 static int esw_add_mc_addr(struct mlx5_eswitch *esw, struct vport_addr *vaddr) in esw_add_mc_addr()
455 static int esw_del_mc_addr(struct mlx5_eswitch *esw, struct vport_addr *vaddr) in esw_del_mc_addr()
[all …]
H A Deswitch.h86 #define esw_chains(esw) \ argument
337 struct mlx5_eswitch *esw; member
624 static inline bool esw_vst_mode_is_steering(struct mlx5_eswitch *esw) in esw_vst_mode_is_steering()
666 static inline bool mlx5_esw_allowed(const struct mlx5_eswitch *esw) in mlx5_esw_allowed()
672 mlx5_esw_is_manager_vport(const struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_is_manager_vport()
677 static inline bool mlx5_esw_is_owner(struct mlx5_eswitch *esw, u16 vport_num, in mlx5_esw_is_owner()
708 static inline bool mlx5_esw_is_fdb_created(struct mlx5_eswitch *esw) in mlx5_esw_is_fdb_created()
730 #define mlx5_esw_for_each_vport(esw, index, vport) \ argument
737 #define mlx5_esw_for_each_vport_marked(esw, index, vport, last, filter) \ argument
740 #define mlx5_esw_for_each_vf_vport(esw, index, vport, last) \ argument
[all …]
H A Deswitch_offloads_termtbl.c112 mlx5_eswitch_termtbl_get_create(struct mlx5_eswitch *esw, in mlx5_eswitch_termtbl_get_create()
163 mlx5_eswitch_termtbl_put(struct mlx5_eswitch *esw, in mlx5_eswitch_termtbl_put()
197 static bool mlx5_eswitch_offload_is_uplink_port(const struct mlx5_eswitch *esw, in mlx5_eswitch_offload_is_uplink_port()
214 mlx5_eswitch_termtbl_required(struct mlx5_eswitch *esw, in mlx5_eswitch_termtbl_required()
244 mlx5_eswitch_add_termtbl_rule(struct mlx5_eswitch *esw, in mlx5_eswitch_add_termtbl_rule()
H A Den_tc.c294 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_act_stats_handle() local
311 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_get_int_port_priv() local
328 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5e_get_flow_meters() local
353 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_ct_priv() local
370 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_sample_priv() local
388 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_post_action() local
407 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5_tc_rule_insert() local
420 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5_tc_rule_delete() local
481 mlx5e_tc_del_flow_meter(struct mlx5_eswitch *esw, struct mlx5_flow_attr *attr) in mlx5e_tc_del_flow_meter()
492 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_rule_offload() local
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dlegacy.c22 static int esw_create_legacy_vepa_table(struct mlx5_eswitch *esw) in esw_create_legacy_vepa_table()
51 static void esw_destroy_legacy_fdb_table(struct mlx5_eswitch *esw) in esw_destroy_legacy_fdb_table()
71 static int esw_create_legacy_fdb_table(struct mlx5_eswitch *esw) in esw_create_legacy_fdb_table()
166 static void esw_destroy_legacy_vepa_table(struct mlx5_eswitch *esw) in esw_destroy_legacy_vepa_table()
176 static int esw_create_legacy_table(struct mlx5_eswitch *esw) in esw_create_legacy_table()
184 static void esw_cleanup_vepa_rules(struct mlx5_eswitch *esw) in esw_cleanup_vepa_rules()
196 static void esw_destroy_legacy_table(struct mlx5_eswitch *esw) in esw_destroy_legacy_table()
207 int esw_legacy_enable(struct mlx5_eswitch *esw) in esw_legacy_enable()
226 void esw_legacy_disable(struct mlx5_eswitch *esw) in esw_legacy_disable()
239 static int _mlx5_eswitch_set_vepa_locked(struct mlx5_eswitch *esw, in _mlx5_eswitch_set_vepa_locked()
[all …]
H A Ddevlink_port.c13 static bool mlx5_esw_devlink_port_supported(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_devlink_port_supported()
20 static void mlx5_esw_offloads_pf_vf_devlink_port_attrs_set(struct mlx5_eswitch *esw, in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
64 int mlx5_esw_offloads_pf_vf_devlink_port_init(struct mlx5_eswitch *esw, in mlx5_esw_offloads_pf_vf_devlink_port_init()
85 void mlx5_esw_offloads_pf_vf_devlink_port_cleanup(struct mlx5_eswitch *esw, in mlx5_esw_offloads_pf_vf_devlink_port_cleanup()
114 static void mlx5_esw_offloads_sf_devlink_port_attrs_set(struct mlx5_eswitch *esw, in mlx5_esw_offloads_sf_devlink_port_attrs_set()
129 int mlx5_esw_offloads_sf_devlink_port_init(struct mlx5_eswitch *esw, struct mlx5_vport *vport, in mlx5_esw_offloads_sf_devlink_port_init()
140 void mlx5_esw_offloads_sf_devlink_port_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in mlx5_esw_offloads_sf_devlink_port_cleanup()
161 int mlx5_esw_offloads_devlink_port_register(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in mlx5_esw_offloads_devlink_port_register()
213 struct devlink_port *mlx5_esw_offloads_devlink_port(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_devlink_port()
H A Dqos.c22 static void esw_qos_lock(struct mlx5_eswitch *esw) in esw_qos_lock()
27 static void esw_qos_unlock(struct mlx5_eswitch *esw) in esw_qos_unlock()
32 static void esw_assert_qos_lock_held(struct mlx5_eswitch *esw) in esw_assert_qos_lock_held()
51 static int esw_qos_domain_init(struct mlx5_eswitch *esw) in esw_qos_domain_init()
58 static void esw_qos_domain_release(struct mlx5_eswitch *esw) in esw_qos_domain_release()
96 struct mlx5_eswitch *esw; member
324 static u32 esw_qos_calculate_min_rate_divider(struct mlx5_eswitch *esw, in esw_qos_calculate_min_rate_divider()
371 static void esw_qos_normalize_min_rate(struct mlx5_eswitch *esw, in esw_qos_normalize_min_rate()
415 struct mlx5_eswitch *esw = node->esw; in esw_qos_set_node_min_rate() local
516 __esw_qos_alloc_node(struct mlx5_eswitch *esw, u32 tsar_ix, enum sched_node_type type, in __esw_qos_alloc_node()
[all …]
H A Dbridge.c44 static bool mlx5_esw_bridge_pkt_reformat_vlan_pop_supported(struct mlx5_eswitch *esw) in mlx5_esw_bridge_pkt_reformat_vlan_pop_supported()
53 mlx5_esw_bridge_pkt_reformat_vlan_pop_create(struct mlx5_eswitch *esw) in mlx5_esw_bridge_pkt_reformat_vlan_pop_create()
65 mlx5_esw_bridge_table_create(int max_fte, u32 level, struct mlx5_eswitch *esw) in mlx5_esw_bridge_table_create()
92 struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_vlan_proto_fg_create()
132 mlx5_esw_bridge_ingress_vlan_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_vlan_fg_create()
142 mlx5_esw_bridge_ingress_qinq_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_qinq_fg_create()
154 u16 vlan_proto, struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_vlan_proto_filter_fg_create()
191 mlx5_esw_bridge_ingress_vlan_filter_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_vlan_filter_fg_create()
202 mlx5_esw_bridge_ingress_qinq_filter_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_qinq_filter_fg_create()
213 mlx5_esw_bridge_ingress_mac_fg_create(struct mlx5_eswitch *esw, struct mlx5_flow_table *ingress_ft) in mlx5_esw_bridge_ingress_mac_fg_create()
[all …]
H A Dvporttbl.c25 esw_vport_tbl_init(struct mlx5_eswitch *esw, struct esw_vport_tbl_namespace *ns) in esw_vport_tbl_init()
33 esw_vport_tbl_create(struct mlx5_eswitch *esw, struct mlx5_flow_namespace *ns, in esw_vport_tbl_create()
55 static u32 flow_attr_to_vport_key(struct mlx5_eswitch *esw, in flow_attr_to_vport_key()
69 esw_vport_tbl_lookup(struct mlx5_eswitch *esw, struct mlx5_vport_key *skey, u32 key) in esw_vport_tbl_lookup()
81 mlx5_esw_vporttbl_get(struct mlx5_eswitch *esw, struct mlx5_vport_tbl_attr *attr) in mlx5_esw_vporttbl_get()
132 mlx5_esw_vporttbl_put(struct mlx5_eswitch *esw, struct mlx5_vport_tbl_attr *attr) in mlx5_esw_vporttbl_put()
H A Dindir_table.c67 mlx5_esw_indir_table_needed(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_needed()
95 static int mlx5_esw_indir_table_rule_get(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_rule_get()
171 static void mlx5_esw_indir_table_rule_put(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_rule_put()
209 static int mlx5_create_indir_fwd_group(struct mlx5_eswitch *esw, in mlx5_create_indir_fwd_group()
248 mlx5_esw_indir_table_entry_create(struct mlx5_eswitch *esw, struct mlx5_flow_attr *attr, in mlx5_esw_indir_table_entry_create()
311 mlx5_esw_indir_table_entry_lookup(struct mlx5_eswitch *esw, u16 vport) in mlx5_esw_indir_table_entry_lookup()
323 struct mlx5_flow_table *mlx5_esw_indir_table_get(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_get()
356 void mlx5_esw_indir_table_put(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_put()
H A Dindir_table.h43 mlx5_esw_indir_table_get(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_get()
51 mlx5_esw_indir_table_put(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_put()
57 mlx5_esw_indir_table_needed(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_needed()
H A Dbridge_mcast.c313 struct mlx5_eswitch *esw = bridge->br_offloads->esw; in mlx5_esw_bridge_port_mcast_fts_init() local
334 mlx5_esw_bridge_mcast_filter_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_mcast_filter_fg_create()
368 struct mlx5_eswitch *esw, in mlx5_esw_bridge_mcast_vlan_proto_fg_create()
402 mlx5_esw_bridge_mcast_vlan_fg_create(struct mlx5_eswitch *esw, struct mlx5_flow_table *mcast_ft) in mlx5_esw_bridge_mcast_vlan_fg_create()
411 mlx5_esw_bridge_mcast_qinq_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_mcast_qinq_fg_create()
421 mlx5_esw_bridge_mcast_fwd_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_mcast_fwd_fg_create()
450 struct mlx5_eswitch *esw = port->bridge->br_offloads->esw; in mlx5_esw_bridge_port_mcast_fgs_init() local
510 struct mlx5_eswitch *esw) in mlx5_esw_bridge_mcast_flow_with_esw_create()
773 mlx5_esw_bridge_ingress_igmp_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_igmp_fg_create()
806 mlx5_esw_bridge_ingress_mld_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_mld_fg_create()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A Dingress_ofld.c13 esw_acl_ingress_prio_tag_enabled(struct mlx5_eswitch *esw, in esw_acl_ingress_prio_tag_enabled()
20 static int esw_acl_ingress_prio_tag_create(struct mlx5_eswitch *esw, in esw_acl_ingress_prio_tag_create()
65 static int esw_acl_ingress_mod_metadata_create(struct mlx5_eswitch *esw, in esw_acl_ingress_mod_metadata_create()
113 static void esw_acl_ingress_mod_metadata_destroy(struct mlx5_eswitch *esw, in esw_acl_ingress_mod_metadata_destroy()
124 static int esw_acl_ingress_src_port_drop_create(struct mlx5_eswitch *esw, in esw_acl_ingress_src_port_drop_create()
157 static void esw_acl_ingress_src_port_drop_destroy(struct mlx5_eswitch *esw, in esw_acl_ingress_src_port_drop_destroy()
167 static int esw_acl_ingress_ofld_rules_create(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_rules_create()
199 static void esw_acl_ingress_ofld_rules_destroy(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_rules_destroy()
207 static int esw_acl_ingress_ofld_groups_create(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_groups_create()
319 acl_ingress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in acl_ingress_ofld_setup()
[all …]
H A Degress_ofld.c41 static int esw_acl_egress_ofld_fwd2vport_create(struct mlx5_eswitch *esw, in esw_acl_egress_ofld_fwd2vport_create()
70 static int esw_acl_egress_ofld_rules_create(struct mlx5_eswitch *esw, in esw_acl_egress_ofld_rules_create()
116 static int esw_acl_egress_ofld_groups_create(struct mlx5_eswitch *esw, in esw_acl_egress_ofld_groups_create()
181 static bool esw_acl_egress_needed(struct mlx5_eswitch *esw, u16 vport_num) in esw_acl_egress_needed()
186 int esw_acl_egress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in esw_acl_egress_ofld_setup()
239 int mlx5_esw_acl_egress_vport_bond(struct mlx5_eswitch *esw, u16 active_vport_num, in mlx5_esw_acl_egress_vport_bond()
265 int mlx5_esw_acl_egress_vport_unbond(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_acl_egress_vport_unbond()
H A Dofld.h18 static inline bool mlx5_esw_acl_egress_fwd2vport_supported(struct mlx5_eswitch *esw) in mlx5_esw_acl_egress_fwd2vport_supported()
35 mlx5_esw_acl_ingress_vport_drop_rule_destroy(struct mlx5_eswitch *esw, in mlx5_esw_acl_ingress_vport_drop_rule_destroy()
39 static int mlx5_esw_acl_ingress_vport_drop_rule_create(struct mlx5_eswitch *esw, in mlx5_esw_acl_ingress_vport_drop_rule_create()
H A Dingress_lgcy.c18 static int esw_acl_ingress_lgcy_groups_create(struct mlx5_eswitch *esw, in esw_acl_ingress_lgcy_groups_create()
139 int esw_acl_ingress_lgcy_setup(struct mlx5_eswitch *esw, in esw_acl_ingress_lgcy_setup()
288 void esw_acl_ingress_lgcy_cleanup(struct mlx5_eswitch *esw, in esw_acl_ingress_lgcy_cleanup()
H A Dhelper.c9 esw_acl_table_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport, int ns, int size) in esw_acl_table_create()
49 int esw_egress_acl_vlan_create(struct mlx5_eswitch *esw, in esw_egress_acl_vlan_create()
95 int esw_acl_egress_vlan_grp_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in esw_acl_egress_vlan_grp_create()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_encap.c155 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_add() local
225 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_del() local
416 struct mlx5_eswitch *esw; in mlx5e_tc_update_neigh_used_value() local
493 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_encap_put() local
506 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_encap_put_locked() local
519 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_decap_put() local
539 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_detach_encap() local
569 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_detach_decap() local
658 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_encap_get() local
678 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_decap_get() local
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A Dbridge.c22 static bool mlx5_esw_bridge_dev_same_esw(struct net_device *dev, struct mlx5_eswitch *esw) in mlx5_esw_bridge_dev_same_esw()
29 static bool mlx5_esw_bridge_dev_same_hw(struct net_device *dev, struct mlx5_eswitch *esw) in mlx5_esw_bridge_dev_same_hw()
41 mlx5_esw_bridge_lag_rep_get(struct net_device *dev, struct mlx5_eswitch *esw) in mlx5_esw_bridge_lag_rep_get()
58 mlx5_esw_bridge_rep_vport_num_vhca_id_get(struct net_device *dev, struct mlx5_eswitch *esw, in mlx5_esw_bridge_rep_vport_num_vhca_id_get()
82 mlx5_esw_bridge_lower_rep_vport_num_vhca_id_get(struct net_device *dev, struct mlx5_eswitch *esw, in mlx5_esw_bridge_lower_rep_vport_num_vhca_id_get()
108 struct mlx5_eswitch *esw) in mlx5_esw_bridge_is_local()
131 struct mlx5_eswitch *esw = br_offloads->esw; in mlx5_esw_bridge_port_changeupper() local
428 struct mlx5_eswitch *esw = br_offloads->esw; in mlx5_esw_bridge_switchdev_event() local
518 struct mlx5_eswitch *esw = in mlx5e_rep_bridge_init() local
579 struct mlx5_eswitch *esw = in mlx5e_rep_bridge_cleanup() local
H A Dtc.c95 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_update_flows() local
205 struct mlx5_eswitch *esw; in mlx5e_rep_setup_ft_cb() local
387 struct mlx5_eswitch *esw; in mlx5e_rep_indr_setup_ft_cb() local
449 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_check_indr_block_supported() local
553 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_replace_act() local
591 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_destroy_act() local
613 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_stats_act() local
709 struct mlx5_eswitch *esw; in mlx5e_rep_tc_receive() local
/linux/drivers/infiniband/hw/mlx5/
H A Dib_rep.c247 struct mlx5_eswitch *esw; in mlx5_ib_vport_rep_unload() local
268 struct mlx5_eswitch *esw; in mlx5_ib_register_peer_vport_reps() local
277 struct net_device *mlx5_ib_get_rep_netdev(struct mlx5_eswitch *esw, in mlx5_ib_get_rep_netdev()
287 struct mlx5_eswitch *esw = dev->mdev->priv.eswitch; in create_flow_rule_vport_sq() local
306 struct mlx5_eswitch *esw; in mlx5r_rep_probe() local
317 struct mlx5_eswitch *esw; in mlx5r_rep_remove() local
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dint_port.c31 bool mlx5e_tc_int_port_supported(const struct mlx5_eswitch *esw) in mlx5e_tc_int_port_supported()
61 mlx5e_int_port_create_rx_rule(struct mlx5_eswitch *esw, in mlx5e_int_port_create_rx_rule()
154 struct mlx5_eswitch *esw = priv->dev->priv.eswitch; in mlx5e_int_port_add() local
230 struct mlx5_eswitch *esw = priv->dev->priv.eswitch; in mlx5e_int_port_remove() local
308 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_int_port_init() local
362 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_int_port_init_rep_rx() local
382 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_int_port_cleanup_rep_rx() local
H A Dsample.c24 struct mlx5_eswitch *esw; member
63 struct mlx5_eswitch *esw = tc_psample->esw; in sampler_termtbl_create() local
265 struct mlx5_eswitch *esw = tc_psample->esw; in sample_restore_get() local
342 add_post_rule(struct mlx5_eswitch *esw, struct mlx5e_sample_flow *sample_flow, in add_post_rule()
407 del_post_rule(struct mlx5_eswitch *esw, struct mlx5e_sample_flow *sample_flow, in del_post_rule()
480 struct mlx5_eswitch *esw; in mlx5e_tc_sample_offload() local
594 struct mlx5_eswitch *esw; in mlx5e_tc_sample_unoffload() local
617 mlx5e_tc_sample_init(struct mlx5_eswitch *esw, struct mlx5e_post_act *post_act) in mlx5e_tc_sample_init()
/linux/include/linux/mlx5/
H A Deswitch.h60 struct mlx5_eswitch *esw; member
171 mlx5_eswitch_reg_c1_loopback_enabled(const struct mlx5_eswitch *esw) in mlx5_eswitch_reg_c1_loopback_enabled()
177 mlx5_eswitch_vport_match_metadata_enabled(const struct mlx5_eswitch *esw) in mlx5_eswitch_vport_match_metadata_enabled()
183 mlx5_eswitch_get_vport_metadata_for_match(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_eswitch_get_vport_metadata_for_match()
199 static inline struct mlx5_core_dev *mlx5_eswitch_get_core_dev(struct mlx5_eswitch *esw) in mlx5_eswitch_get_core_dev()

12