Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/
A Deswitch_offloads.c235 struct mlx5_eswitch *esw, in esw_setup_ft_dest()
482 struct mlx5_eswitch *esw, in esw_setup_dests()
3158 struct mlx5_eswitch *esw; in esw_functions_changed_event_handler() local
3178 struct mlx5_eswitch *esw; in mlx5_esw_funcs_changed_handler() local
3412 struct mlx5_eswitch *esw; in mlx5_devlink_eswitch_mode_set() local
3459 struct mlx5_eswitch *esw; in mlx5_devlink_eswitch_mode_get() local
3507 struct mlx5_eswitch *esw; in mlx5_devlink_eswitch_inline_mode_set() local
3559 struct mlx5_eswitch *esw; in mlx5_devlink_eswitch_inline_mode_get() local
3577 struct mlx5_eswitch *esw; in mlx5_devlink_eswitch_encap_mode_set() local
3634 struct mlx5_eswitch *esw; in mlx5_devlink_eswitch_encap_mode_get() local
[all …]
A Deswitch.c711 struct mlx5_eswitch *esw = dev->priv.eswitch; in esw_vport_change_handle_locked() local
1619 struct mlx5_eswitch *esw; in mlx5_eswitch_init() local
1965 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_eswitch_mode() local
1974 struct mlx5_eswitch *esw; in mlx5_eswitch_get_encap_mode() local
2009 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_esw_hold() local
2027 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_esw_release() local
2039 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_esw_get() local
2051 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_esw_put() local
2068 int mlx5_esw_try_lock(struct mlx5_eswitch *esw) in mlx5_esw_try_lock()
2085 void mlx5_esw_unlock(struct mlx5_eswitch *esw) in mlx5_esw_unlock()
[all …]
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_is_push_vlan_no_cap(struct mlx5_eswitch *esw, in mlx5_eswitch_is_push_vlan_no_cap()
226 mlx5_eswitch_termtbl_required(struct mlx5_eswitch *esw, in mlx5_eswitch_termtbl_required()
253 mlx5_eswitch_add_termtbl_rule(struct mlx5_eswitch *esw, in mlx5_eswitch_add_termtbl_rule()
A Deswitch.h86 #define esw_chains(esw) \ argument
280 struct mlx5_eswitch *esw; member
562 static inline bool mlx5_esw_allowed(const struct mlx5_eswitch *esw) in mlx5_esw_allowed()
604 static inline bool mlx5_esw_is_fdb_created(struct mlx5_eswitch *esw) in mlx5_esw_is_fdb_created()
626 #define mlx5_esw_for_each_vport(esw, index, vport) \ argument
636 #define mlx5_esw_for_each_vf_vport(esw, index, vport, last) \ argument
639 #define mlx5_esw_for_each_host_func_vport(esw, index, vport, last) \ argument
751 static inline int mlx5_eswitch_num_vfs(struct mlx5_eswitch *esw) in mlx5_eswitch_num_vfs()
760 mlx5_eswitch_get_slow_fdb(struct mlx5_eswitch *esw) in mlx5_eswitch_get_slow_fdb()
780 esw_add_restore_rule(struct mlx5_eswitch *esw, u32 tag) in esw_add_restore_rule()
[all …]
A Den_tc.c298 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_act_stats_handle() local
315 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_get_int_port_priv() local
332 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5e_get_flow_meters() local
1646 struct mlx5_eswitch *esw; in add_unready_flow() local
1661 struct mlx5_eswitch *esw; in remove_unready_flow() local
1697 struct mlx5_eswitch *esw; in mlx5e_tc_query_route_vport() local
2252 struct mlx5_eswitch *esw; in mlx5e_get_flow_tunnel_id() local
2337 struct mlx5_eswitch *esw; in mlx5e_put_flow_tunnel_id() local
3143 struct mlx5_eswitch *esw = dev->priv.eswitch; in parse_cls_flower() local
4985 struct mlx5_eswitch *esw; in apply_police_params() local
[all …]
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/esw/
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()
72 static int esw_create_legacy_fdb_table(struct mlx5_eswitch *esw) in esw_create_legacy_fdb_table()
177 static int esw_create_legacy_table(struct mlx5_eswitch *esw) in esw_create_legacy_table()
195 static void esw_cleanup_vepa_rules(struct mlx5_eswitch *esw) in esw_cleanup_vepa_rules()
207 static void esw_destroy_legacy_table(struct mlx5_eswitch *esw) in esw_destroy_legacy_table()
218 int esw_legacy_enable(struct mlx5_eswitch *esw) in esw_legacy_enable()
237 void esw_legacy_disable(struct mlx5_eswitch *esw) in esw_legacy_disable()
389 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_query_vport_drop_stats() local
428 int mlx5_eswitch_set_vport_vlan(struct mlx5_eswitch *esw, in mlx5_eswitch_set_vport_vlan()
[all …]
A Dqos.c62 static int esw_qos_vport_config(struct mlx5_eswitch *esw, in esw_qos_vport_config()
280 static int esw_qos_set_group_max_rate(struct mlx5_eswitch *esw, in esw_qos_set_group_max_rate()
597 static void esw_qos_destroy(struct mlx5_eswitch *esw) in esw_qos_destroy()
627 static void esw_qos_put(struct mlx5_eswitch *esw) in esw_qos_put()
778 struct mlx5_eswitch *esw; in mlx5_esw_devlink_rate_leaf_tx_share_set() local
804 struct mlx5_eswitch *esw; in mlx5_esw_devlink_rate_leaf_tx_max_set() local
830 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_devlink_rate_node_tx_share_set() local
848 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_devlink_rate_node_tx_max_set() local
866 struct mlx5_eswitch *esw; in mlx5_esw_devlink_rate_node_new() local
897 struct mlx5_eswitch *esw; in mlx5_esw_devlink_rate_node_del() local
[all …]
A Ddevlink_port.c17 static bool mlx5_esw_devlink_port_supported(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_devlink_port_supported()
24 static struct devlink_port *mlx5_esw_dl_port_alloc(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_dl_port_alloc()
68 int mlx5_esw_offloads_devlink_port_register(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_devlink_port_register()
108 void mlx5_esw_offloads_devlink_port_unregister(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_devlink_port_unregister()
129 struct devlink_port *mlx5_esw_offloads_devlink_port(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_devlink_port()
137 int mlx5_esw_devlink_sf_port_register(struct mlx5_eswitch *esw, struct devlink_port *dl_port, in mlx5_esw_devlink_sf_port_register()
175 void mlx5_esw_devlink_sf_port_unregister(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_devlink_sf_port_unregister()
A Dbridge.c176 struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_vlan_proto_fg_create()
238 u16 vlan_proto, struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_vlan_proto_filter_fg_create()
334 struct mlx5_eswitch *esw, in mlx5_esw_bridge_egress_vlan_proto_fg_create()
453 struct mlx5_eswitch *esw = br_offloads->esw; in mlx5_esw_bridge_ingress_table_init() local
558 struct mlx5_eswitch *esw = br_offloads->esw; in mlx5_esw_bridge_egress_table_init() local
660 struct mlx5_eswitch *esw) in mlx5_esw_bridge_ingress_flow_with_esw_create()
1071 struct mlx5_eswitch *esw) in mlx5_esw_bridge_vlan_push_create()
1170 struct mlx5_eswitch *esw) in mlx5_esw_bridge_vlan_push_pop_create()
1203 struct mlx5_eswitch *esw) in mlx5_esw_bridge_vlan_create()
1541 struct mlx5_eswitch *esw = br_offloads->esw; in mlx5_esw_bridge_vport_init() local
[all …]
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()
A Dvporttbl.c25 esw_vport_tbl_create(struct mlx5_eswitch *esw, struct mlx5_flow_namespace *ns, in esw_vport_tbl_create()
47 static u32 flow_attr_to_vport_key(struct mlx5_eswitch *esw, in flow_attr_to_vport_key()
61 esw_vport_tbl_lookup(struct mlx5_eswitch *esw, struct mlx5_vport_key *skey, u32 key) in esw_vport_tbl_lookup()
73 mlx5_esw_vporttbl_get(struct mlx5_eswitch *esw, struct mlx5_vport_tbl_attr *attr) in mlx5_esw_vporttbl_get()
123 mlx5_esw_vporttbl_put(struct mlx5_eswitch *esw, struct mlx5_vport_tbl_attr *attr) in mlx5_esw_vporttbl_put()
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()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
A Dingress_ofld.c10 esw_acl_ingress_prio_tag_enabled(struct mlx5_eswitch *esw, in esw_acl_ingress_prio_tag_enabled()
17 static int esw_acl_ingress_prio_tag_create(struct mlx5_eswitch *esw, in esw_acl_ingress_prio_tag_create()
62 static int esw_acl_ingress_mod_metadata_create(struct mlx5_eswitch *esw, in esw_acl_ingress_mod_metadata_create()
110 static void esw_acl_ingress_mod_metadata_destroy(struct mlx5_eswitch *esw, in esw_acl_ingress_mod_metadata_destroy()
121 static int esw_acl_ingress_src_port_drop_create(struct mlx5_eswitch *esw, in esw_acl_ingress_src_port_drop_create()
141 static void esw_acl_ingress_src_port_drop_destroy(struct mlx5_eswitch *esw, in esw_acl_ingress_src_port_drop_destroy()
151 static int esw_acl_ingress_ofld_rules_create(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_rules_create()
183 static void esw_acl_ingress_ofld_rules_destroy(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_rules_destroy()
191 static int esw_acl_ingress_ofld_groups_create(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_groups_create()
302 int esw_acl_ingress_ofld_setup(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_setup()
[all …]
A Degress_ofld.c27 static int esw_acl_egress_ofld_fwd2vport_create(struct mlx5_eswitch *esw, in esw_acl_egress_ofld_fwd2vport_create()
56 static int esw_acl_egress_ofld_rules_create(struct mlx5_eswitch *esw, in esw_acl_egress_ofld_rules_create()
102 static int esw_acl_egress_ofld_groups_create(struct mlx5_eswitch *esw, in esw_acl_egress_ofld_groups_create()
167 static bool esw_acl_egress_needed(struct mlx5_eswitch *esw, u16 vport_num) in esw_acl_egress_needed()
172 int esw_acl_egress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in esw_acl_egress_ofld_setup()
224 int mlx5_esw_acl_egress_vport_bond(struct mlx5_eswitch *esw, u16 active_vport_num, in mlx5_esw_acl_egress_vport_bond()
250 int mlx5_esw_acl_egress_vport_unbond(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_acl_egress_vport_unbond()
A Dofld.h17 static inline bool mlx5_esw_acl_egress_fwd2vport_supported(struct mlx5_eswitch *esw) in mlx5_esw_acl_egress_fwd2vport_supported()
34 mlx5_esw_acl_ingress_vport_drop_rule_destroy(struct mlx5_eswitch *esw, in mlx5_esw_acl_ingress_vport_drop_rule_destroy()
38 static int mlx5_esw_acl_ingress_vport_drop_rule_create(struct mlx5_eswitch *esw, in mlx5_esw_acl_ingress_vport_drop_rule_create()
A Degress_lgcy.c18 static int esw_acl_egress_lgcy_groups_create(struct mlx5_eswitch *esw, in esw_acl_egress_lgcy_groups_create()
67 int esw_acl_egress_lgcy_setup(struct mlx5_eswitch *esw, in esw_acl_egress_lgcy_setup()
161 void esw_acl_egress_lgcy_cleanup(struct mlx5_eswitch *esw, in esw_acl_egress_lgcy_cleanup()
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()
A Dhelper.c9 esw_acl_table_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport, int ns, int size) in esw_acl_table_create()
48 int esw_egress_acl_vlan_create(struct mlx5_eswitch *esw, in esw_egress_acl_vlan_create()
94 int esw_acl_egress_vlan_grp_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in esw_acl_egress_vlan_grp_create()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtc_tun_encap.c146 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_add() local
216 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_del() local
407 struct mlx5_eswitch *esw; in mlx5e_tc_update_neigh_used_value() local
484 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_encap_put() local
497 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_decap_put() local
517 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_detach_encap() local
547 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_detach_decap() local
605 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_encap_get() local
625 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_decap_get() local
744 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_route_tbl_get_last_update() local
[all …]
/linux-6.3-rc2/drivers/infiniband/hw/mlx5/
A Dib_rep.c147 struct mlx5_eswitch *esw; in mlx5_ib_vport_rep_unload() local
167 struct mlx5_eswitch *esw; in mlx5_ib_register_peer_vport_reps() local
176 struct net_device *mlx5_ib_get_rep_netdev(struct mlx5_eswitch *esw, in mlx5_ib_get_rep_netdev()
186 struct mlx5_eswitch *esw = dev->mdev->priv.eswitch; in create_flow_rule_vport_sq() local
205 struct mlx5_eswitch *esw; in mlx5r_rep_probe() local
216 struct mlx5_eswitch *esw; in mlx5r_rep_remove() local
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
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()
45 mlx5_esw_bridge_lag_rep_get(struct net_device *dev, struct mlx5_eswitch *esw) in mlx5_esw_bridge_lag_rep_get()
67 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()
87 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()
113 struct mlx5_eswitch *esw) in mlx5_esw_bridge_is_local()
136 struct mlx5_eswitch *esw = br_offloads->esw; in mlx5_esw_bridge_port_changeupper() local
418 struct mlx5_eswitch *esw = br_offloads->esw; in mlx5_esw_bridge_switchdev_event() local
494 struct mlx5_eswitch *esw = in mlx5e_rep_bridge_init() local
554 struct mlx5_eswitch *esw = in mlx5e_rep_bridge_cleanup() local
A Dtc.c95 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_update_flows() local
191 struct mlx5_eswitch *esw; in mlx5e_rep_setup_ft_cb() local
373 struct mlx5_eswitch *esw; in mlx5e_rep_indr_setup_ft_cb() local
438 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_setup_block() local
520 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_replace_act() local
558 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_destroy_act() local
580 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_stats_act() local
676 struct mlx5_eswitch *esw; in mlx5e_rep_tc_receive() local
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
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
360 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_int_port_init_rep_rx() local
380 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_int_port_cleanup_rep_rx() local
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-6.3-rc2/include/linux/mlx5/
A Deswitch.h59 struct mlx5_eswitch *esw; member
165 mlx5_eswitch_reg_c1_loopback_enabled(const struct mlx5_eswitch *esw) in mlx5_eswitch_reg_c1_loopback_enabled()
171 mlx5_eswitch_vport_match_metadata_enabled(const struct mlx5_eswitch *esw) in mlx5_eswitch_vport_match_metadata_enabled()
177 mlx5_eswitch_get_vport_metadata_for_match(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_eswitch_get_vport_metadata_for_match()
193 static inline struct mlx5_core_dev *mlx5_eswitch_get_core_dev(struct mlx5_eswitch *esw) in mlx5_eswitch_get_core_dev()

Completed in 62 milliseconds

12