Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Deswitch_offloads.c217 struct mlx5_eswitch *esw, in esw_setup_ft_dest()
453 struct mlx5_eswitch *esw, in esw_setup_dests()
2384 struct mlx5_eswitch *esw; in esw_set_uplink_slave_ingress_root() local
3122 struct mlx5_eswitch *esw; in esw_functions_changed_event_handler() local
3142 struct mlx5_eswitch *esw; in mlx5_esw_funcs_changed_handler() local
3386 struct mlx5_eswitch *esw; in mlx5_devlink_eswitch_mode_set() local
3431 struct mlx5_eswitch *esw; in mlx5_devlink_eswitch_mode_get() local
3484 struct mlx5_eswitch *esw; in mlx5_devlink_eswitch_inline_mode_set() local
3539 struct mlx5_eswitch *esw; in mlx5_devlink_eswitch_inline_mode_get() local
3562 struct mlx5_eswitch *esw; in mlx5_devlink_eswitch_encap_mode_set() local
[all …]
A Deswitch.c703 struct mlx5_eswitch *esw = dev->priv.eswitch; in esw_vport_change_handle_locked() local
1539 struct mlx5_eswitch *esw; in mlx5_eswitch_init() local
1718 struct mlx5_eswitch *esw; in mlx5_devlink_port_function_hw_addr_get() local
1751 struct mlx5_eswitch *esw; in mlx5_devlink_port_function_hw_addr_set() local
1952 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_eswitch_mode() local
1961 struct mlx5_eswitch *esw; in mlx5_eswitch_get_encap_mode() local
2007 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_esw_hold() local
2025 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_esw_release() local
2083 void mlx5_esw_unlock(struct mlx5_eswitch *esw) in mlx5_esw_unlock()
2094 void mlx5_esw_lock(struct mlx5_eswitch *esw) in mlx5_esw_lock()
[all …]
A Deswitch_offloads_termtbl.c110 mlx5_eswitch_termtbl_get_create(struct mlx5_eswitch *esw, in mlx5_eswitch_termtbl_get_create()
161 mlx5_eswitch_termtbl_put(struct mlx5_eswitch *esw, in mlx5_eswitch_termtbl_put()
195 static bool mlx5_eswitch_offload_is_uplink_port(const struct mlx5_eswitch *esw, in mlx5_eswitch_offload_is_uplink_port()
212 mlx5_eswitch_termtbl_required(struct mlx5_eswitch *esw, in mlx5_eswitch_termtbl_required()
240 mlx5_eswitch_add_termtbl_rule(struct mlx5_eswitch *esw, in mlx5_eswitch_add_termtbl_rule()
A Deswitch.h84 #define esw_chains(esw) \ argument
271 struct mlx5_eswitch *esw; member
519 static inline bool mlx5_esw_qos_enabled(struct mlx5_eswitch *esw) in mlx5_esw_qos_enabled()
555 static inline bool mlx5_esw_allowed(const struct mlx5_eswitch *esw) in mlx5_esw_allowed()
614 #define mlx5_esw_for_each_vport(esw, index, vport) \ argument
624 #define mlx5_esw_for_each_vf_vport(esw, index, vport, last) \ argument
627 #define mlx5_esw_for_each_host_func_vport(esw, index, vport, last) \ argument
740 static inline void mlx5_eswitch_cleanup(struct mlx5_eswitch *esw) {} in mlx5_eswitch_cleanup()
753 static inline void mlx5_esw_lock(struct mlx5_eswitch *esw) { return; } in mlx5_esw_lock()
756 esw_add_restore_rule(struct mlx5_eswitch *esw, u32 tag) in esw_add_restore_rule()
[all …]
A Den_tc.c237 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_get_int_port_priv() local
254 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_ct_priv() local
1280 struct mlx5_eswitch *esw; in add_unready_flow() local
1295 struct mlx5_eswitch *esw; in remove_unready_flow() local
1330 struct mlx5_eswitch *esw; in mlx5e_tc_query_route_vport() local
1800 struct mlx5_eswitch *esw; in mlx5e_get_flow_tunnel_id() local
1885 struct mlx5_eswitch *esw; in mlx5e_put_flow_tunnel_id() local
2575 struct mlx5_eswitch *esw = dev->priv.eswitch; in parse_cls_flower() local
3427 struct mlx5_eswitch *esw; in validate_goto_chain() local
4937 struct mlx5_eswitch *esw; in apply_police_params() local
[all …]
A Den_rep.c168 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() local
307 static void mlx5e_sqs2vport_stop(struct mlx5_eswitch *esw, in mlx5e_sqs2vport_stop()
326 static int mlx5e_sqs2vport_start(struct mlx5_eswitch *esw, in mlx5e_sqs2vport_start()
394 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_add_sqs_fwd_rules() local
424 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_remove_sqs_fwd_rules() local
760 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_create_rep_vport_rx_rule() local
1316 static int mlx5e_vport_rep_event_pair(struct mlx5_eswitch *esw, in mlx5e_vport_rep_event_pair()
1340 static int mlx5e_vport_rep_event(struct mlx5_eswitch *esw, in mlx5e_vport_rep_event()
1367 struct mlx5_eswitch *esw; in mlx5e_rep_probe() local
1378 struct mlx5_eswitch *esw; in mlx5e_rep_remove() local
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
A Dlegacy.c21 static int esw_create_legacy_vepa_table(struct mlx5_eswitch *esw) in esw_create_legacy_vepa_table()
50 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()
176 static int esw_create_legacy_table(struct mlx5_eswitch *esw) in esw_create_legacy_table()
194 static void esw_cleanup_vepa_rules(struct mlx5_eswitch *esw) in esw_cleanup_vepa_rules()
206 static void esw_destroy_legacy_table(struct mlx5_eswitch *esw) in esw_destroy_legacy_table()
217 int esw_legacy_enable(struct mlx5_eswitch *esw) in esw_legacy_enable()
236 void esw_legacy_disable(struct mlx5_eswitch *esw) in esw_legacy_disable()
388 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_query_vport_drop_stats() local
427 int mlx5_eswitch_set_vport_vlan(struct mlx5_eswitch *esw, in mlx5_eswitch_set_vport_vlan()
[all …]
A Dqos.c64 static int esw_qos_vport_config(struct mlx5_eswitch *esw, in esw_qos_vport_config()
207 int mlx5_esw_qos_set_vport_min_rate(struct mlx5_eswitch *esw, in mlx5_esw_qos_set_vport_min_rate()
234 int mlx5_esw_qos_set_vport_max_rate(struct mlx5_eswitch *esw, in mlx5_esw_qos_set_vport_max_rate()
529 void mlx5_esw_qos_create(struct mlx5_eswitch *esw) in mlx5_esw_qos_create()
584 void mlx5_esw_qos_destroy(struct mlx5_eswitch *esw) in mlx5_esw_qos_destroy()
719 struct mlx5_eswitch *esw; in mlx5_esw_devlink_rate_leaf_tx_share_set() local
740 struct mlx5_eswitch *esw; in mlx5_esw_devlink_rate_leaf_tx_max_set() local
761 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_devlink_rate_node_tx_share_set() local
779 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_devlink_rate_node_tx_max_set() local
797 struct mlx5_eswitch *esw; in mlx5_esw_devlink_rate_node_new() 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.c104 mlx5_esw_bridge_pkt_reformat_vlan_pop_create(struct mlx5_eswitch *esw) in mlx5_esw_bridge_pkt_reformat_vlan_pop_create()
179 mlx5_esw_bridge_ingress_filter_fg_create(struct mlx5_eswitch *esw, in mlx5_esw_bridge_ingress_filter_fg_create()
351 struct mlx5_eswitch *esw = br_offloads->esw; in mlx5_esw_bridge_ingress_table_init() local
434 struct mlx5_eswitch *esw = br_offloads->esw; in mlx5_esw_bridge_egress_table_init() local
526 struct mlx5_eswitch *esw) in mlx5_esw_bridge_ingress_flow_with_esw_create()
1013 struct mlx5_eswitch *esw) in mlx5_esw_bridge_vlan_create()
1071 struct mlx5_eswitch *esw = bridge->br_offloads->esw; in mlx5_esw_bridge_vlan_flush() local
1107 struct mlx5_esw_bridge *bridge, struct mlx5_eswitch *esw) in mlx5_esw_bridge_port_vlan_lookup()
1294 struct mlx5_eswitch *esw = br_offloads->esw; in mlx5_esw_bridge_vport_init() local
1518 struct mlx5_eswitch *esw = br_offloads->esw; in mlx5_esw_bridge_fdb_remove() local
[all …]
A Dindir_table.c74 mlx5_esw_indir_table_needed(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_needed()
117 static int mlx5_esw_indir_table_rule_get(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_rule_get()
255 static void mlx5_esw_indir_table_rule_put(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_rule_put()
283 static int mlx5_create_indir_recirc_group(struct mlx5_eswitch *esw, in mlx5_create_indir_recirc_group()
335 static int mlx5_create_indir_fwd_group(struct mlx5_eswitch *esw, in mlx5_create_indir_fwd_group()
381 mlx5_esw_indir_table_entry_create(struct mlx5_eswitch *esw, struct mlx5_flow_attr *attr, in mlx5_esw_indir_table_entry_create()
445 mlx5_esw_indir_table_entry_lookup(struct mlx5_eswitch *esw, u16 vport, u8 ip_version) in mlx5_esw_indir_table_entry_lookup()
457 struct mlx5_flow_table *mlx5_esw_indir_table_get(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_get()
491 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.h45 mlx5_esw_indir_table_get(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_get()
54 mlx5_esw_indir_table_put(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_put()
61 mlx5_esw_indir_table_needed(struct mlx5_eswitch *esw, in mlx5_esw_indir_table_needed()
/linux/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()
109 static void esw_acl_ingress_mod_metadata_destroy(struct mlx5_eswitch *esw, in esw_acl_ingress_mod_metadata_destroy()
120 static int esw_acl_ingress_ofld_rules_create(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_rules_create()
152 static void esw_acl_ingress_ofld_rules_destroy(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_rules_destroy()
159 static int esw_acl_ingress_ofld_groups_create(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_groups_create()
241 int esw_acl_ingress_ofld_setup(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_setup()
287 void esw_acl_ingress_ofld_cleanup(struct mlx5_eswitch *esw, in esw_acl_ingress_ofld_cleanup()
296 int mlx5_esw_acl_ingress_vport_bond_update(struct mlx5_eswitch *esw, u16 vport_num, in mlx5_esw_acl_ingress_vport_bond_update()
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 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()
156 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()
265 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/drivers/infiniband/hw/mlx5/
A Dib_rep.c139 struct mlx5_eswitch *esw; in mlx5_ib_vport_rep_unload() local
159 struct mlx5_eswitch *esw; in mlx5_ib_register_peer_vport_reps() local
168 struct net_device *mlx5_ib_get_rep_netdev(struct mlx5_eswitch *esw, in mlx5_ib_get_rep_netdev()
178 struct mlx5_eswitch *esw = dev->mdev->priv.eswitch; in create_flow_rule_vport_sq() local
197 struct mlx5_eswitch *esw; in mlx5r_rep_probe() local
208 struct mlx5_eswitch *esw; in mlx5r_rep_remove() local
/linux/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
206 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_del() local
386 struct mlx5_eswitch *esw; in mlx5e_tc_update_neigh_used_value() local
463 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_encap_put() local
476 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_decap_put() local
494 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_detach_encap() local
521 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_detach_decap() local
579 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_encap_get() local
599 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_decap_get() local
718 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_route_tbl_get_last_update() local
[all …]
/linux/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
381 struct mlx5_eswitch *esw = br_offloads->esw; in mlx5_esw_bridge_switchdev_event() local
461 struct mlx5_eswitch *esw = in mlx5e_rep_bridge_init() local
519 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
554 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_restore_tunnel() local
653 struct mlx5_eswitch *esw; in mlx5e_restore_skb_chain() local
701 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_restore_skb_int_port() local
729 struct mlx5_eswitch *esw; in mlx5e_rep_tc_receive() local
/linux/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.c22 struct mlx5_eswitch *esw; member
63 struct mlx5_eswitch *esw = tc_psample->esw; in sampler_termtbl_create() local
285 struct mlx5_eswitch *esw = tc_psample->esw; in sample_restore_get() local
365 add_post_rule(struct mlx5_eswitch *esw, struct mlx5e_sample_flow *sample_flow, in add_post_rule()
430 del_post_rule(struct mlx5_eswitch *esw, struct mlx5e_sample_flow *sample_flow, in del_post_rule()
504 struct mlx5_eswitch *esw; in mlx5e_tc_sample_offload() local
626 struct mlx5_eswitch *esw; in mlx5e_tc_sample_unoffload() local
651 mlx5e_tc_sample_init(struct mlx5_eswitch *esw, struct mlx5e_post_act *post_act) in mlx5e_tc_sample_init()
/linux/include/linux/mlx5/
A Deswitch.h60 struct mlx5_eswitch *esw; member
166 mlx5_eswitch_reg_c1_loopback_enabled(const struct mlx5_eswitch *esw) in mlx5_eswitch_reg_c1_loopback_enabled()
172 mlx5_eswitch_vport_match_metadata_enabled(const struct mlx5_eswitch *esw) in mlx5_eswitch_vport_match_metadata_enabled()
178 mlx5_eswitch_get_vport_metadata_for_match(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_eswitch_get_vport_metadata_for_match()
194 static inline struct mlx5_core_dev *mlx5_eswitch_get_core_dev(struct mlx5_eswitch *esw) in mlx5_eswitch_get_core_dev()

Completed in 71 milliseconds

12