Home
last modified time | relevance | path

Searched refs:vhca_id (Results 1 – 25 of 35) sorted by relevance

12

/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dadj_vport.c39 int mlx5_esw_create_esw_vport(struct mlx5_core_dev *dev, u16 vhca_id, in mlx5_esw_adj_vport_modify()
48 MLX5_SET(create_esw_vport_in, in, managed_vhca_id, vhca_id); in mlx5_esw_destroy_esw_vport()
57 static int mlx5_esw_adj_vport_create(struct mlx5_eswitch *esw, u16 vhca_id, in mlx5_esw_destroy_esw_vport()
64 err = mlx5_esw_create_esw_vport(esw->dev, vhca_id, &vport_num); in mlx5_esw_create_esw_vport()
67 "Failed to create adjacent vport for vhca_id %d, err %d\n", in mlx5_esw_create_esw_vport()
68 vhca_id, err); in mlx5_esw_create_esw_vport()
72 esw_debug(esw->dev, "Created adjacent vport[%d] %d for vhca_id 0x%x\n", in mlx5_esw_create_esw_vport()
73 esw->last_vport_idx, vport_num, vhca_id); in mlx5_esw_create_esw_vport()
82 vport->vhca_id = vhca_id; in mlx5_esw_adj_vport_create()
59 mlx5_esw_create_esw_vport(struct mlx5_core_dev * dev,u16 vhca_id,u16 * vport_num) mlx5_esw_create_esw_vport() argument
77 mlx5_esw_adj_vport_create(struct mlx5_eswitch * esw,u16 vhca_id,const void * rid_info_reg) mlx5_esw_adj_vport_create() argument
202 u16 vhca_id; mlx5_esw_adjacent_vhcas_setup() local
[all...]
H A Dvporttbl.c13 u16 vhca_id; member
62 key->vhca_id = MLX5_CAP_GEN(esw->dev, vhca_id); in flow_attr_to_vport_key()
H A Dindir_table.c234 dest.vport.vhca_id = MLX5_CAP_GEN(esw->dev, vhca_id); in mlx5_create_indir_fwd_group()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dchannels.c28 u32 *vhca_id) in mlx5e_channels_get_regular_rqn() argument
33 if (vhca_id) in mlx5e_channels_get_regular_rqn()
34 *vhca_id = MLX5_CAP_GEN(c->mdev, vhca_id); in mlx5e_channels_get_regular_rqn()
38 u32 *vhca_id) in mlx5e_channels_get_xsk_rqn() argument
45 if (vhca_id) in mlx5e_channels_get_xsk_rqn()
46 *vhca_id = MLX5_CAP_GEN(c->mdev, vhca_id); in mlx5e_channels_get_xsk_rqn()
H A Dchannels.h14 u32 *vhca_id);
16 u32 *vhca_id);
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads_termtbl.c31 hash = jhash((const void *)&dest->vport.vhca_id, in mlx5_eswitch_termtbl_hash()
50 dest1->vport.vhca_id != dest2->vport.vhca_id || in mlx5_eswitch_termtbl_cmp()
143 tt->dest.vport.vhca_id = dest->vport.vhca_id; in mlx5_eswitch_termtbl_get_create()
330 dest[i].vport.vhca_id = tt->dest.vport.vhca_id; in mlx5_eswitch_add_termtbl_rule()
H A Deswitch.h214 ((vport)->vhca_id == MLX5_VHCA_ID_INVALID)
228 int vhca_id; member
358 u16 vhca_id; member
680 u16 vhca_id);
690 int mlx5_esw_create_esw_vport(struct mlx5_core_dev *dev, u16 vhca_id,
719 return esw_owner_vhca_id == MLX5_CAP_GEN(esw->dev, vhca_id) || in mlx5_esw_is_owner()
738 return (MLX5_CAP_GEN(dev, vhca_id) << 16) | vport_num; in mlx5_esw_vport_to_devlink_port_index()
922 int mlx5_eswitch_vhca_id_to_vport(struct mlx5_eswitch *esw, u16 vhca_id, u16 *vport_num);
923 bool mlx5_esw_vport_vhca_id(struct mlx5_eswitch *esw, u16 vportn, u16 *vhca_id);
924 u16 mlx5_esw_vhca_id_to_func_type(struct mlx5_core_dev *dev, u16 vhca_id);
[all …]
H A Dvport.c1246 MLX5_CAP_GEN(master_mdev, vhca_id)); in mlx5_nic_vport_affiliate_multiport()
1331 u16 vport_num, u16 *vhca_id) in mlx5_query_nic_system_image_guid()
1336 return mlx5_esw_vport_vhca_id(dev->priv.eswitch, vport_num, vhca_id); in mlx5_query_nic_sw_system_image_guid()
1343 u16 vhca_id = 0, function_id = 0; in mlx5_query_nic_sw_system_image_guid()
1349 * unless we use vhca_id as the function_id below. in mlx5_query_nic_sw_system_image_guid()
1354 if (mlx5_vport_use_vhca_id_as_func_id(dev, vport, &vhca_id)) { in mlx5_vport_use_vhca_id_as_func_id()
1356 function_id = vhca_id; in mlx5_vport_use_vhca_id_as_func_id()
1358 mlx5_core_dbg(dev, "%s using vhca_id as function_id for vport %d vhca_id 0x%x\n", in mlx5_vport_use_vhca_id_as_func_id()
1359 __func__, vport, vhca_id); in mlx5_vport_use_vhca_id_as_func_id()
1355 mlx5_vport_use_vhca_id_as_func_id(struct mlx5_core_dev * dev,u16 vport_num,u16 * vhca_id) mlx5_vport_use_vhca_id_as_func_id() argument
1367 u16 vhca_id = 0, function_id = 0; mlx5_vport_get_other_func_cap() local
1396 mlx5_vport_get_vhca_id(struct mlx5_core_dev * dev,u16 vport,u16 * vhca_id) mlx5_vport_get_vhca_id() argument
1428 u16 vhca_id = 0, function_id = 0; mlx5_vport_set_other_func_cap() local
[all...]
H A Deswitch_offloads.c165 MLX5_CAP_GEN(src_esw->dev, vhca_id)); in mlx5_eswitch_set_rule_source_port()
430 return MLX5_CAP_GEN(mdev1, vhca_id) == MLX5_CAP_GEN(mdev2, vhca_id); in esw_same_vhca_id()
477 dest[dest_idx].vport.vhca_id = in esw_setup_dest_fwd_vport()
478 MLX5_CAP_GEN(esw_attr->dests[attr_idx].mdev, vhca_id); in esw_setup_dest_fwd_vport()
985 MLX5_CAP_GEN(from_esw->dev, vhca_id)); in mlx5_eswitch_add_send_to_vport_rule()
999 dest.vport.vhca_id = MLX5_CAP_GEN(rep->esw->dev, vhca_id); in mlx5_eswitch_add_send_to_vport_rule()
1011 dest.vport.vhca_id = MLX5_CAP_GEN(rep->esw->dev, vhca_id); in mlx5_eswitch_add_send_to_vport_rule()
1148 MLX5_CAP_GEN(peer_dev, vhca_id)); in peer_miss_rules_setup()
1161 dest->vport.vhca_id = MLX5_CAP_GEN(peer_dev, vhca_id); in peer_miss_rules_setup()
1290 MLX5_CAP_GEN(peer_dev, vhca_id), flows, GFP_KERNEL); in esw_add_fdb_peer_miss_rules()
[all …]
H A Deswitch.c816 vport->vhca_id = MLX5_GET(cmd_hca_cap, hca_caps, vhca_id); in mlx5_esw_vport_caps_get()
836 bool mlx5_esw_vport_vhca_id(struct mlx5_eswitch *esw, u16 vportn, u16 *vhca_id) in mlx5_esw_vport_vhca_id() argument
844 *vhca_id = vport->vhca_id; in mlx5_esw_vport_vhca_id()
864 u16 mlx5_esw_vhca_id_to_func_type(struct mlx5_core_dev *dev, u16 vhca_id) in mlx5_esw_vhca_id_to_func_type() argument
869 if (vhca_id == MLX5_CAP_GEN(dev, vhca_id)) in mlx5_esw_vhca_id_to_func_type()
875 entry = xa_load(&esw->vhca_type_map, vhca_id); in mlx5_esw_vhca_id_to_func_type()
990 ret = xa_insert(&esw->vhca_type_map, vport->vhca_id, in mlx5_esw_vport_enable()
1035 xa_erase(&esw->vhca_type_map, vport->vhca_id); in mlx5_esw_vport_disable()
1213 u16 vhca_id) in mlx5_esw_get_spf_disabled() argument
1224 entry, vhca_id); in mlx5_esw_get_spf_disabled()
[all …]
H A Dtransobj.c399 MLX5_CAP_GEN(hp->func_mdev, vhca_id), hp->rqn[i]); in mlx5_hairpin_pair_queues()
408 MLX5_CAP_GEN(hp->peer_mdev, vhca_id), hp->sqn[i]); in mlx5_hairpin_pair_queues()
H A Dmlx5_core.h112 u16 vhca_id; member
457 u16 vport_num, u16 *vhca_id);
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dsd.c648 u16 vhca_id_to_be_accessed = MLX5_CAP_GEN(primary, vhca_id); in sd_secondary_create_alias_ft()
655 alias_attr.vhca_id = vhca_id_to_be_accessed; in sd_secondary_create_alias_ft()
751 MLX5_CAP_GEN(primary, vhca_id)); in sd_print_group()
755 MLX5_CAP_GEN(pos, vhca_id)); in sd_print_group()
767 MLX5_CAP_GEN(dev, vhca_id)); in dev_read()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dcmd.h91 u16 vhca_id; member
234 u32 vhca_id; member
H A Dmlx5hws.h625 u16 vhca_id,
H A Daction.c287 fixup_stc_attr->vport.esw_owner_vhca_id = ctx->caps->vhca_id; in hws_action_fixup_stc_attr()
817 u16 vhca_id, in mlx5hws_action_create_dest_vport() argument
832 if (!ctx->caps->merged_eswitch && vhca_id_valid && vhca_id != ctx->caps->vhca_id) { in mlx5hws_action_create_dest_vport()
841 action->vport.esw_owner_vhca_id = vhca_id; in mlx5hws_action_create_dest_vport()
H A Dcmd.c1002 caps->vhca_id = MLX5_GET(query_hca_cap_out, out, in mlx5hws_cmd_query_caps()
1003 capability.cmd_hca_cap.vhca_id); in mlx5hws_cmd_query_caps()
1202 *gvmi = MLX5_CAP_GEN(mdev, vhca_id); in mlx5hws_cmd_query_gvmi()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A Degress_ofld.c284 fwd_dest.vport.vhca_id = MLX5_CAP_GEN(esw->dev, vhca_id); in mlx5_esw_acl_egress_vport_bond()
/linux/drivers/infiniband/hw/mlx5/
H A Dcmd.c259 MLX5_SET(query_vuid_in, in, vhca_id, MLX5_CAP_GEN(dev, vhca_id)); in mlx5_cmd_query_vuid()
/linux/include/linux/mlx5/
H A Dmlx5_ifc_vdpa.h89 u8 vhca_id[0x10]; member
H A Dvport.h147 int mlx5_vport_get_vhca_id(struct mlx5_core_dev *dev, u16 vport, u16 *vhca_id);
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Dmlx5dr.h96 u16 vhca_id);
H A Dfs_dr.c188 dest_attr->vport.vhca_id); in create_vport_action()
197 dest_attr->vport.vhca_id); in create_uplink_action()
H A Ddr_action.c1219 hw_dests[i].vport.vhca_id = dest_action->vport->caps->vhca_gvmi; in mlx5dr_action_create_mult_dest_tbl()
2107 u16 vhca_id) in mlx5dr_action_create_dest_vport() argument
2115 (vhca_id != dmn->info.caps.gvmi); in mlx5dr_action_create_dest_vport()
2116 vport_dmn = peer_vport ? xa_load(&dmn->peer_dmn_xa, vhca_id) : dmn; in mlx5dr_action_create_dest_vport()
/linux/drivers/vfio/pci/mlx5/
H A Dcmd.h175 u16 vhca_id; member

12