Home
last modified time | relevance | path

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

12

/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()
327 dest[i].vport.vhca_id = tt->dest.vport.vhca_id; in mlx5_eswitch_add_termtbl_rule()
H A Deswitch.h213 ((vport)->vhca_id == MLX5_VHCA_ID_INVALID)
227 int vhca_id; member
357 u16 vhca_id; member
679 u16 vhca_id);
689 int mlx5_esw_create_esw_vport(struct mlx5_core_dev *dev, u16 vhca_id,
718 return esw_owner_vhca_id == MLX5_CAP_GEN(esw->dev, vhca_id) || in mlx5_esw_is_owner()
737 return (MLX5_CAP_GEN(dev, vhca_id) << 16) | vport_num; in mlx5_esw_vport_to_devlink_port_index()
921 int mlx5_eswitch_vhca_id_to_vport(struct mlx5_eswitch *esw, u16 vhca_id, u16 *vport_num);
922 bool mlx5_esw_vport_vhca_id(struct mlx5_eswitch *esw, u16 vportn, u16 *vhca_id);
923 u16 mlx5_esw_vhca_id_to_func_type(struct mlx5_core_dev *dev, u16 vhca_id);
[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()
1207 u16 vhca_id) in mlx5_esw_get_spf_disabled() argument
1218 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);
H A Den_tc.c1124 peer_id = MLX5_CAP_GEN(peer_mdev, vhca_id); in mlx5e_hairpin_flow_add()
1682 u16 vhca_id; in mlx5e_tc_query_route_vport() local
1690 vhca_id = MLX5_CAP_GEN(route_mdev, vhca_id); in mlx5e_tc_query_route_vport()
1691 err = mlx5_eswitch_vhca_id_to_vport(esw, vhca_id, vport); in mlx5e_tc_query_route_vport()
1701 err = mlx5_eswitch_vhca_id_to_vport(esw, vhca_id, vport); in mlx5e_tc_query_route_vport()
5207 peer_vhca_id = MLX5_CAP_GEN(peer_mdev, vhca_id); in mlx5e_tc_hairpin_update_dead_peer()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
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()
H A Dbridge_mcast.c613 dest.vport.vhca_id = port->esw_owner_vhca_id; in mlx5_esw_bridge_mcast_vlan_flow_create()
665 dest.vport.vhca_id = port->esw_owner_vhca_id; in mlx5_esw_bridge_mcast_fwd_flow_create()
/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()
H A Ddebug.c315 ctx->caps->vhca_id, in hws_debug_dump_context_attr()
/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/include/linux/mlx5/
H A Dmlx5_ifc_vdpa.h89 u8 vhca_id[0x10]; member
/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/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
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A Dbridge.c77 *esw_owner_vhca_id = MLX5_CAP_GEN(priv->mdev, vhca_id); in mlx5_esw_bridge_rep_vport_num_vhca_id_get()

12