Home
last modified time | relevance | path

Searched refs:vport_num (Results 1 – 25 of 46) sorted by relevance

12

/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge.h48 int mlx5_esw_bridge_vport_link(struct net_device *br_netdev, u16 vport_num, u16 esw_owner_vhca_id,
54 int mlx5_esw_bridge_vport_peer_link(struct net_device *br_netdev, u16 vport_num,
58 int mlx5_esw_bridge_vport_peer_unlink(struct net_device *br_netdev, u16 vport_num,
68 void mlx5_esw_bridge_fdb_create(struct net_device *dev, u16 vport_num, u16 esw_owner_vhca_id,
71 void mlx5_esw_bridge_fdb_remove(struct net_device *dev, u16 vport_num, u16 esw_owner_vhca_id,
77 int mlx5_esw_bridge_vlan_filtering_set(u16 vport_num, u16 esw_owner_vhca_id, bool enable,
79 int mlx5_esw_bridge_vlan_proto_set(u16 vport_num, u16 esw_owner_vhca_id, u16 proto,
81 int mlx5_esw_bridge_mcast_set(u16 vport_num, u16 esw_owner_vhca_id, bool enable,
83 int mlx5_esw_bridge_port_vlan_add(u16 vport_num, u16 esw_owner_vhca_id, u16 vid, u16 flags,
86 void mlx5_esw_bridge_port_vlan_del(u16 vport_num, u16 esw_owner_vhca_id, u16 vid,
[all …]
H A Ddevlink_port.c20 mlx5_eswitch_is_vf_vport(esw, vport_num) || in mlx5_esw_devlink_port_supported()
21 mlx5_core_is_ec_vf_vport(esw->dev, vport_num); in mlx5_esw_devlink_port_supported()
25 u16 vport_num, in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() argument
40 if (vport_num == MLX5_VPORT_PF) { in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
44 } else if (mlx5_eswitch_is_vf_vport(esw, vport_num)) { in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
48 vport_num - 1, external); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
53 vport_num - 1, false); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
61 u16 vport_num = vport->vport; in mlx5_esw_offloads_pf_vf_devlink_port_init() local
157 u16 vport_num = vport->vport; in mlx5_esw_offloads_devlink_port_register() local
166 if (mlx5_esw_is_sf_vport(esw, vport_num)) in mlx5_esw_offloads_devlink_port_register()
[all …]
H A Dbridge.c745 .vport.num = vport_num, in mlx5_esw_bridge_egress_flow_create()
1327 vport_num); in mlx5_esw_bridge_port_vlan_lookup()
1374 entry->vport_num = vport_num; in mlx5_esw_bridge_fdb_entry_init()
1397 vport_num, err, peer); in mlx5_esw_bridge_fdb_entry_init()
1407 vport_num, err); in mlx5_esw_bridge_fdb_entry_init()
1418 vport_num, err); in mlx5_esw_bridge_fdb_entry_init()
1556 port->vport_num = vport_num; in mlx5_esw_bridge_vport_init()
1591 u16 vport_num = port->vport_num, esw_owner_vhca_id = port->esw_owner_vhca_id; in mlx5_esw_bridge_vport_cleanup() local
1596 if (entry->vport_num == vport_num && entry->esw_owner_vhca_id == esw_owner_vhca_id) in mlx5_esw_bridge_vport_cleanup()
1864 addr, vport_num); in mlx5_esw_bridge_port_mdb_add()
[all …]
H A Dipsec.c9 static int esw_ipsec_vf_query_generic(struct mlx5_core_dev *dev, u16 vport_num, bool *result) in esw_ipsec_vf_query_generic() argument
27 err = mlx5_vport_get_other_func_general_cap(dev, vport_num, query_cap); in esw_ipsec_vf_query_generic()
98 ret = mlx5_vport_get_other_func_general_cap(dev, vport_num, query_cap); in esw_ipsec_vf_set_generic()
109 MLX5_SET(set_hca_cap_in, hca_cap, function_id, vport_num); in esw_ipsec_vf_set_generic()
196 MLX5_SET(set_hca_cap_in, hca_cap, function_id, vport_num); in esw_ipsec_vf_crypto_aux_caps_set()
261 static int esw_ipsec_offload_supported(struct mlx5_core_dev *dev, u16 vport_num) in esw_ipsec_offload_supported() argument
271 ret = mlx5_vport_get_other_func_cap(dev, vport_num, query_cap, MLX5_CAP_GENERAL); in esw_ipsec_offload_supported()
294 u16 vport_num) in mlx5_esw_ipsec_vf_crypto_offload_supported() argument
303 err = esw_ipsec_offload_supported(dev, vport_num); in mlx5_esw_ipsec_vf_crypto_offload_supported()
325 u16 vport_num) in mlx5_esw_ipsec_vf_packet_offload_supported() argument
[all …]
H A Dindir_table.h23 u16 vport_num,
59 u16 vport_num, in mlx5_esw_indir_table_needed() argument
H A Dbridge_mcast.c81 if (port->vport_num == MLX5_VPORT_UPLINK) in mlx5_esw_bridge_mdb_flow_create()
201 addr, vid, port->vport_num); in mlx5_esw_bridge_port_mdb_attach()
209 addr, vid, port->vport_num, err); in mlx5_esw_bridge_port_mdb_attach()
220 addr, vid, port->vport_num, err); in mlx5_esw_bridge_port_mdb_attach()
230 addr, vid, port->vport_num, err); in mlx5_esw_bridge_port_mdb_attach()
254 entry->key.addr, entry->key.vid, port->vport_num); in mlx5_esw_bridge_port_mdb_entry_detach()
267 addr, vid, port->vport_num); in mlx5_esw_bridge_port_mdb_detach()
274 addr, vid, port->vport_num); in mlx5_esw_bridge_port_mdb_detach()
528 mlx5_eswitch_get_vport_metadata_for_match(esw, port->vport_num)); in mlx5_esw_bridge_mcast_flow_with_esw_create()
581 .vport.num = port->vport_num, in mlx5_esw_bridge_mcast_vlan_flow_create()
[all …]
H A Dbridge_priv.h149 u16 vport_num; member
181 u16 vport_num; member
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A Dbridge.c63 u16 *vport_num, u16 *esw_owner_vhca_id) in mlx5_esw_bridge_rep_vport_num_vhca_id_get() argument
80 *vport_num = rpriv->rep->vport; in mlx5_esw_bridge_rep_vport_num_vhca_id_get()
87 u16 *vport_num, u16 *esw_owner_vhca_id) in mlx5_esw_bridge_lower_rep_vport_num_vhca_id_get() argument
136 u16 vport_num, esw_owner_vhca_id; in mlx5_esw_bridge_port_changeupper() local
222 u16 vport_num, esw_owner_vhca_id; in mlx5_esw_bridge_port_obj_add() local
256 u16 vport_num, esw_owner_vhca_id; in mlx5_esw_bridge_port_obj_del() local
287 u16 vport_num, esw_owner_vhca_id; in mlx5_esw_bridge_port_obj_attr_set() local
314 err = mlx5_esw_bridge_vlan_proto_set(vport_num, in mlx5_esw_bridge_port_obj_attr_set()
320 err = mlx5_esw_bridge_mcast_set(vport_num, esw_owner_vhca_id, in mlx5_esw_bridge_port_obj_attr_set()
373 u16 vport_num, esw_owner_vhca_id; in mlx5_esw_bridge_switchdev_fdb_event_work() local
[all …]
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A Dofld.h16 int mlx5_esw_acl_egress_vport_unbond(struct mlx5_eswitch *esw, u16 vport_num);
28 int mlx5_esw_acl_ingress_vport_metadata_update(struct mlx5_eswitch *esw, u16 vport_num,
30 void mlx5_esw_acl_ingress_vport_drop_rule_destroy(struct mlx5_eswitch *esw, u16 vport_num);
31 int mlx5_esw_acl_ingress_vport_drop_rule_create(struct mlx5_eswitch *esw, u16 vport_num);
36 u16 vport_num) in mlx5_esw_acl_ingress_vport_drop_rule_destroy() argument
40 u16 vport_num) in mlx5_esw_acl_ingress_vport_drop_rule_create() argument
H A Dhelper.c16 u16 vport_num; in esw_acl_table_create() local
26 vport_num = vport->vport; in esw_acl_table_create()
27 esw_debug(dev, "Create vport[%d] %s ACL table\n", vport_num, in esw_acl_table_create()
33 vport_num); in esw_acl_table_create()
38 if (vport_num || mlx5_core_is_ecpf(esw->dev)) in esw_acl_table_create()
40 acl = mlx5_create_vport_flow_table(root_ns, &ft_attr, vport_num); in esw_acl_table_create()
43 esw_warn(dev, "vport[%d] create %s ACL table, err(%d)\n", vport_num, in esw_acl_table_create()
H A Dingress_ofld.c380 int mlx5_esw_acl_ingress_vport_metadata_update(struct mlx5_eswitch *esw, u16 vport_num, in mlx5_esw_acl_ingress_vport_metadata_update() argument
383 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_acl_ingress_vport_metadata_update()
387 esw_warn(esw->dev, "vport(%d) invalid!\n", vport_num); in mlx5_esw_acl_ingress_vport_metadata_update()
407 int mlx5_esw_acl_ingress_vport_drop_rule_create(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_acl_ingress_vport_drop_rule_create() argument
409 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_acl_ingress_vport_drop_rule_create()
412 esw_warn(esw->dev, "vport(%d) invalid!\n", vport_num); in mlx5_esw_acl_ingress_vport_drop_rule_create()
419 void mlx5_esw_acl_ingress_vport_drop_rule_destroy(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_acl_ingress_vport_drop_rule_destroy() argument
421 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_acl_ingress_vport_drop_rule_destroy()
424 esw_warn(esw->dev, "vport(%d) invalid!\n", vport_num); in mlx5_esw_acl_ingress_vport_drop_rule_destroy()
H A Degress_ofld.c181 static bool esw_acl_egress_needed(struct mlx5_eswitch *esw, u16 vport_num) in esw_acl_egress_needed() argument
183 return mlx5_eswitch_is_vf_vport(esw, vport_num) || mlx5_esw_is_sf_vport(esw, vport_num); in esw_acl_egress_needed()
265 int mlx5_esw_acl_egress_vport_unbond(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_acl_egress_vport_unbond() argument
267 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_acl_egress_vport_unbond()
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c373 u16 vport_num; in update_allmulti_vports() local
381 vport_num = vport->vport; in update_allmulti_vports()
395 mac, vport_num); in update_allmulti_vports()
402 vport_num); in update_allmulti_vports()
862 vport_num, 1, in esw_vport_setup()
866 if (vport_num) { in esw_vport_setup()
894 vport_num, 1, in esw_vport_cleanup()
1002 u16 vport_num; in eswitch_vport_event() local
1004 vport_num = be16_to_cpu(eqe->data.vport_change.vport_num); in eswitch_vport_event()
1969 vport_num); in mlx5_esw_set_vport_mac_locked()
[all …]
H A Deswitch.h427 u16 vport_num, bool setting);
632 return esw->manager_vport == vport_num; in mlx5_esw_is_manager_vport()
639 (vport_num == MLX5_VPORT_UPLINK && mlx5_lag_is_master(esw->dev)); in mlx5_esw_is_owner()
655 u16 vport_num) in mlx5_esw_vport_to_devlink_port_index() argument
657 return (MLX5_CAP_GEN(dev, vhca_id) << 16) | vport_num; in mlx5_esw_vport_to_devlink_port_index()
726 mlx5_eswitch_get_vport(struct mlx5_eswitch *esw, u16 vport_num);
730 bool mlx5_esw_is_sf_vport(struct mlx5_eswitch *esw, u16 vport_num);
884 u16 vport_num);
890 u16 vport_num);
917 u16 vport_num) in mlx5_esw_vport_to_devlink_port_index() argument
[all …]
H A Deswitch_offloads.c77 u16 vport_num) in mlx5_eswitch_get_rep() argument
1063 dest.vport.num = vport_num; in mlx5_eswitch_add_send_to_vport_meta_rule()
4153 u16 vport_num) in mlx5_eswitch_get_vport_metadata_for_match() argument
4172 vport_num, err); in mlx5_esw_vport_vhca_id_set()
4180 *vhca_map_entry = vport_num; in mlx5_esw_vport_vhca_id_set()
4198 vport_num, err); in mlx5_esw_vport_vhca_id_clear()
4211 *vport_num = *res; in mlx5_eswitch_vhca_id_to_vport()
4216 u16 vport_num) in mlx5_eswitch_get_vport_metadata_for_set() argument
4355 u16 vport_num = vport->vport; in mlx5_devlink_port_fn_roce_set() local
4456 u16 vport_num; in mlx5_devlink_port_fn_ipsec_crypto_set() local
[all …]
H A Dsriov.c76 int vport_num; in mlx5_device_enable_sriov() local
108 vport_num = mlx5_core_ec_sriov_enabled(dev) ? in mlx5_device_enable_sriov()
111 err = sriov_restore_guids(dev, vf, vport_num); in mlx5_device_enable_sriov()
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dreporter_vnic.c18 u16 vport_num, bool other_vport) in mlx5_reporter_vnic_diagnose_counter_icm() argument
41 err = mlx5_vport_get_vhca_id(dev, vport_num, &vhca_id); in mlx5_reporter_vnic_diagnose_counter_icm()
44 vport_num, err); in mlx5_reporter_vnic_diagnose_counter_icm()
62 u16 vport_num, bool other_vport) in mlx5_reporter_vnic_diagnose_counters() argument
68 MLX5_SET(query_vnic_env_in, in, vport_number, vport_num); in mlx5_reporter_vnic_diagnose_counters()
107 mlx5_reporter_vnic_diagnose_counter_icm(dev, fmsg, vport_num, other_vport); in mlx5_reporter_vnic_diagnose_counters()
H A Dreporter_vnic.h14 u16 vport_num, bool other_vport);
/linux-6.15/include/linux/mlx5/
H A Deswitch.h68 u16 vport_num,
71 u16 vport_num);
106 u16 vport_num);
108 u16 vport_num);
183 mlx5_eswitch_get_vport_metadata_for_match(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_eswitch_get_vport_metadata_for_match() argument
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/esw/diag/
H A Dbridge_tracepoint.h87 __field(u16, vport_num)
92 __entry->vport_num = port->vport_num;
97 __entry->vport_num,
/linux-6.15/drivers/infiniband/hw/mlx5/
H A Dib_rep.h21 u16 vport_num);
35 u16 vport_num) in mlx5_ib_get_rep_netdev() argument
/linux-6.15/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_vema.c149 u8 vport_num = vema_get_vport_num(recvd_mad); in vema_get_vport_adapter() local
151 return xa_load(&port->vports, vport_num); in vema_get_vport_adapter()
200 u8 vport_num) in vema_add_vport() argument
205 adapter = opa_vnic_add_netdev(cport->ibdev, port->port_num, vport_num); in vema_add_vport()
210 rc = xa_insert(&port->vports, vport_num, adapter, GFP_KERNEL); in vema_add_vport()
314 u8 vport_num; in vema_set_veswport_info() local
316 vport_num = vema_get_vport_num(recvd_mad); in vema_set_veswport_info()
320 adapter = vema_add_vport(port, vport_num); in vema_set_veswport_info()
323 vport_num, PTR_ERR(adapter)); in vema_set_veswport_info()
H A Dopa_vnic_netdev.c323 u8 port_num, u8 vport_num) in opa_vnic_add_netdev() argument
352 adapter->vport_num = vport_num; in opa_vnic_add_netdev()
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_fw.c8 mlx5dr_fw_create_recalc_cs_ft(struct mlx5dr_domain *dmn, u16 vport_num) in mlx5dr_fw_create_recalc_cs_ft() argument
57 vport_num); in mlx5dr_fw_create_recalc_cs_ft()
/linux-6.15/drivers/net/ethernet/intel/ice/
H A Dice_trace.h305 TP_STRUCT__entry(__field(u16, vport_num)
307 TP_fast_assign(__entry->vport_num = port->vsi_idx;
317 __entry->vport_num,

12