Home
last modified time | relevance | path

Searched refs:mlx5_vport (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A Dhelper.h11 esw_acl_table_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport, int ns, int size);
14 void esw_acl_egress_table_destroy(struct mlx5_vport *vport);
15 int esw_egress_acl_vlan_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
18 void esw_acl_egress_vlan_destroy(struct mlx5_vport *vport);
19 int esw_acl_egress_vlan_grp_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
20 void esw_acl_egress_vlan_grp_destroy(struct mlx5_vport *vport);
23 void esw_acl_ingress_table_destroy(struct mlx5_vport *vport);
24 void esw_acl_ingress_allow_rule_destroy(struct mlx5_vport *vport);
H A Degress_ofld.c9 static void esw_acl_egress_ofld_fwd2vport_destroy(struct mlx5_vport *vport) in esw_acl_egress_ofld_fwd2vport_destroy()
18 void esw_acl_egress_ofld_bounce_rule_destroy(struct mlx5_vport *vport, int rule_index) in esw_acl_egress_ofld_bounce_rule_destroy()
30 static void esw_acl_egress_ofld_bounce_rules_destroy(struct mlx5_vport *vport) in esw_acl_egress_ofld_bounce_rules_destroy()
42 struct mlx5_vport *vport, in esw_acl_egress_ofld_fwd2vport_create()
71 struct mlx5_vport *vport, in esw_acl_egress_ofld_rules_create()
109 static void esw_acl_egress_ofld_rules_destroy(struct mlx5_vport *vport) in esw_acl_egress_ofld_rules_destroy()
117 struct mlx5_vport *vport) in esw_acl_egress_ofld_groups_create()
166 static void esw_acl_egress_ofld_groups_destroy(struct mlx5_vport *vport) in esw_acl_egress_ofld_groups_destroy()
186 int esw_acl_egress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in esw_acl_egress_ofld_setup()
232 void esw_acl_egress_ofld_cleanup(struct mlx5_vport *vport) in esw_acl_egress_ofld_cleanup()
[all …]
H A Dingress_ofld.c10 acl_ingress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
14 const struct mlx5_vport *vport) in esw_acl_ingress_prio_tag_enabled()
21 struct mlx5_vport *vport) in esw_acl_ingress_prio_tag_create()
66 struct mlx5_vport *vport) in esw_acl_ingress_mod_metadata_create()
114 struct mlx5_vport *vport) in esw_acl_ingress_mod_metadata_destroy()
125 struct mlx5_vport *vport) in esw_acl_ingress_src_port_drop_create()
158 struct mlx5_vport *vport) in esw_acl_ingress_src_port_drop_destroy()
168 struct mlx5_vport *vport) in esw_acl_ingress_ofld_rules_create()
200 struct mlx5_vport *vport) in esw_acl_ingress_ofld_rules_destroy()
208 struct mlx5_vport *vport) in esw_acl_ingress_ofld_groups_create()
[all …]
H A Dofld.h11 int esw_acl_egress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
12 void esw_acl_egress_ofld_cleanup(struct mlx5_vport *vport);
13 void esw_acl_egress_ofld_bounce_rule_destroy(struct mlx5_vport *vport, int rule_index);
26 int esw_acl_ingress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
27 void esw_acl_ingress_ofld_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
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()
50 struct mlx5_vport *vport, in esw_egress_acl_vlan_create()
87 void esw_acl_egress_vlan_destroy(struct mlx5_vport *vport) in esw_acl_egress_vlan_destroy()
95 int esw_acl_egress_vlan_grp_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in esw_acl_egress_vlan_grp_create()
131 void esw_acl_egress_vlan_grp_destroy(struct mlx5_vport *vport) in esw_acl_egress_vlan_grp_destroy()
139 void esw_acl_egress_table_destroy(struct mlx5_vport *vport) in esw_acl_egress_table_destroy()
148 void esw_acl_ingress_table_destroy(struct mlx5_vport *vport) in esw_acl_ingress_table_destroy()
157 void esw_acl_ingress_allow_rule_destroy(struct mlx5_vport *vport) in esw_acl_ingress_allow_rule_destroy()
H A Dlgcy.h10 int esw_acl_egress_lgcy_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
11 void esw_acl_egress_lgcy_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
14 int esw_acl_ingress_lgcy_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
15 void esw_acl_ingress_lgcy_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
H A Dingress_lgcy.c9 static void esw_acl_ingress_lgcy_rules_destroy(struct mlx5_vport *vport) in esw_acl_ingress_lgcy_rules_destroy()
19 struct mlx5_vport *vport) in esw_acl_ingress_lgcy_groups_create()
119 static void esw_acl_ingress_lgcy_groups_destroy(struct mlx5_vport *vport) in esw_acl_ingress_lgcy_groups_destroy()
140 struct mlx5_vport *vport) in esw_acl_ingress_lgcy_setup()
289 struct mlx5_vport *vport) in esw_acl_ingress_lgcy_cleanup()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.h177 struct mlx5_vport;
181 struct mlx5_vport *vport;
185 struct mlx5_vport *vport) in mlx5_devlink_port_init()
195 static inline struct mlx5_vport *mlx5_devlink_port_vport_get(struct devlink_port *dl_port) in mlx5_devlink_port_vport_get()
205 struct mlx5_vport { struct
434 void mlx5_esw_vport_free(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
458 int mlx5_esw_qos_vport_update_parent(struct mlx5_vport *vport, struct mlx5_esw_sched_node *node,
767 struct mlx5_vport *__must_check
781 int mlx5_esw_vport_enable(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
783 void mlx5_esw_vport_disable(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
[all …]
H A Deswitch.c106 struct mlx5_vport *__must_check
109 struct mlx5_vport *vport; in mlx5_eswitch_get_vport()
371 struct mlx5_vport *vport; in update_allmulti_vports()
499 struct mlx5_vport *vport, int list_type) in esw_apply_vport_addr_list()
533 struct mlx5_vport *vport, int list_type) in esw_update_vport_addr_list()
620 struct mlx5_vport *vport) in esw_update_vport_mc_promisc()
655 struct mlx5_vport *vport, in esw_apply_vport_rx_mode()
698 struct mlx5_vport *vport) in esw_update_vport_rx_mode()
725 void esw_vport_change_handle_locked(struct mlx5_vport *vport) in esw_vport_change_handle_locked()
763 struct mlx5_vport *vport = in esw_vport_change_handler()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dqos.h12 int mlx5_esw_qos_set_vport_rate(struct mlx5_vport *evport, u32 max_rate, u32 min_rate);
13 bool mlx5_esw_qos_get_vport_rate(struct mlx5_vport *vport, u32 *max_rate, u32 *min_rate);
14 void mlx5_esw_qos_vport_disable(struct mlx5_vport *vport);
16 void mlx5_esw_qos_vport_qos_free(struct mlx5_vport *vport);
17 u32 mlx5_esw_qos_vport_get_sched_elem_ix(const struct mlx5_vport *vport);
18 struct mlx5_esw_sched_node *mlx5_esw_qos_vport_get_parent(const struct mlx5_vport *vport);
H A Ddevlink_port.c26 struct mlx5_vport *vport; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
65 struct mlx5_vport *vport) in mlx5_esw_offloads_pf_vf_devlink_port_init()
86 struct mlx5_vport *vport) in mlx5_esw_offloads_pf_vf_devlink_port_cleanup()
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()
199 void mlx5_esw_offloads_devlink_port_unregister(struct mlx5_vport *vport) in mlx5_esw_offloads_devlink_port_unregister()
215 struct mlx5_vport *vport; in mlx5_esw_offloads_devlink_port()
H A Dlegacy.h16 int esw_legacy_vport_acl_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
17 void esw_legacy_vport_acl_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
20 struct mlx5_vport *vport,
H A Dqos.c100 struct mlx5_vport *vport;
150 struct mlx5_vport *vport = child->vport; in esw_qos_nodes_set_parent()
159 void mlx5_esw_qos_vport_qos_free(struct mlx5_vport *vport) in mlx5_esw_qos_vport_qos_free()
174 u32 mlx5_esw_qos_vport_get_sched_elem_ix(const struct mlx5_vport *vport) in mlx5_esw_qos_vport_get_sched_elem_ix()
183 mlx5_esw_qos_vport_get_parent(const struct mlx5_vport *vport) in mlx5_esw_qos_vport_get_parent()
859 esw_qos_create_vport_tc_sched_node(struct mlx5_vport *vport, in esw_qos_create_vport_tc_sched_node()
893 esw_qos_destroy_vport_tc_sched_elements(struct mlx5_vport *vport, in esw_qos_destroy_vport_tc_sched_elements()
910 esw_qos_create_vport_tc_sched_elements(struct mlx5_vport *vport, in esw_qos_create_vport_tc_sched_elements()
949 esw_qos_vport_tc_enable(struct mlx5_vport *vport, enum sched_node_type type, in esw_qos_vport_tc_enable()
1007 static void esw_qos_vport_tc_disable(struct mlx5_vport *vport, in esw_qos_vport_tc_disable()
[all …]
H A Dlegacy.c209 struct mlx5_vport *vport; in esw_legacy_enable()
347 int esw_legacy_vport_acl_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in esw_legacy_vport_acl_setup()
371 void esw_legacy_vport_acl_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport) in esw_legacy_vport_acl_cleanup()
381 struct mlx5_vport *vport, in mlx5_esw_query_vport_drop_stats()
455 struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); in mlx5_eswitch_set_vport_spoofchk()
488 struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); in mlx5_eswitch_set_vport_trust()
513 struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); in mlx5_eswitch_set_vport_rate()
H A Dipsec.c43 int mlx5_esw_ipsec_vf_offload_get(struct mlx5_core_dev *dev, struct mlx5_vport *vport) in mlx5_esw_ipsec_vf_offload_get()
120 static int esw_ipsec_vf_set_bytype(struct mlx5_core_dev *dev, struct mlx5_vport *vport, in esw_ipsec_vf_set_bytype()
206 static int esw_ipsec_vf_offload_set_bytype(struct mlx5_eswitch *esw, struct mlx5_vport *vport, in esw_ipsec_vf_offload_set_bytype()
357 int mlx5_esw_ipsec_vf_crypto_offload_set(struct mlx5_eswitch *esw, struct mlx5_vport *vport, in mlx5_esw_ipsec_vf_crypto_offload_set()
364 int mlx5_esw_ipsec_vf_packet_offload_set(struct mlx5_eswitch *esw, struct mlx5_vport *vport, in mlx5_esw_ipsec_vf_packet_offload_set()
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Ddevlink.c161 struct mlx5_vport *vport; in mlx5_sf_activate()
327 struct mlx5_vport *vport; in mlx5_sf_dealloc()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dlag.c1060 struct mlx5_vport *vport; in mlx5_lag_modify_device_vports_speed()