| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | channels.c | 28 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 D | channels.h | 14 u32 *vhca_id); 16 u32 *vhca_id);
|
| H A D | rx_res.c | 562 u32 *vhca_id = get_vhca_ids(res, ix); in mlx5e_rx_res_channel_activate_direct() local 566 err = mlx5e_rqt_redirect_direct(&res->channels[ix].direct_rqt, rqn, vhca_id); in mlx5e_rx_res_channel_activate_direct() 593 u32 *vhca_id = get_vhca_ids(res, ix); in mlx5e_rx_res_channels_activate() local 596 mlx5e_channels_get_xsk_rqn(chs, ix, &res->rss_rqns[ix], vhca_id); in mlx5e_rx_res_channels_activate() 598 mlx5e_channels_get_regular_rqn(chs, ix, &res->rss_rqns[ix], vhca_id); in mlx5e_rx_res_channels_activate() 643 u32 *vhca_id = get_vhca_ids(res, ix); in mlx5e_rx_res_xsk_update() local 646 mlx5e_channels_get_xsk_rqn(chs, ix, &res->rss_rqns[ix], vhca_id); in mlx5e_rx_res_xsk_update() 648 mlx5e_channels_get_regular_rqn(chs, ix, &res->rss_rqns[ix], vhca_id); in mlx5e_rx_res_xsk_update()
|
| H A D | rqt.h | 42 int mlx5e_rqt_redirect_direct(struct mlx5e_rqt *rqt, u32 rqn, u32 *vhca_id);
|
| H A D | rqt.c | 225 int mlx5e_rqt_redirect_direct(struct mlx5e_rqt *rqt, u32 rqn, u32 *vhca_id) in mlx5e_rqt_redirect_direct() argument 227 return mlx5e_rqt_redirect(rqt, &rqn, vhca_id, 1); in mlx5e_rqt_redirect_direct()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | eswitch_offloads_termtbl.c | 31 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 D | vport.c | 1202 MLX5_CAP_GEN(master_mdev, vhca_id)); in mlx5_nic_vport_affiliate_multiport() 1287 u16 vport_num, u16 *vhca_id) in mlx5_vport_use_vhca_id_as_func_id() argument 1292 return mlx5_esw_vport_vhca_id(dev->priv.eswitch, vport_num, vhca_id); in mlx5_vport_use_vhca_id_as_func_id() 1299 u16 vhca_id = 0, function_id = 0; in mlx5_vport_get_other_func_cap() local 1310 if (mlx5_vport_use_vhca_id_as_func_id(dev, vport, &vhca_id)) { in mlx5_vport_get_other_func_cap() 1312 function_id = vhca_id; in mlx5_vport_get_other_func_cap() 1315 __func__, vport, vhca_id); in mlx5_vport_get_other_func_cap() 1328 int mlx5_vport_get_vhca_id(struct mlx5_core_dev *dev, u16 vport, u16 *vhca_id) in mlx5_vport_get_vhca_id() argument 1336 if (mlx5_esw_vport_vhca_id(dev->priv.eswitch, vport, vhca_id)) in mlx5_vport_get_vhca_id() 1348 *vhca_id = MLX5_GET(cmd_hca_cap, hca_caps, vhca_id); in mlx5_vport_get_vhca_id() [all …]
|
| H A D | eswitch_offloads.c | 163 MLX5_CAP_GEN(src_esw->dev, vhca_id)); in mlx5_eswitch_set_rule_source_port() 428 return MLX5_CAP_GEN(mdev1, vhca_id) == MLX5_CAP_GEN(mdev2, vhca_id); in esw_same_vhca_id() 475 dest[dest_idx].vport.vhca_id = in esw_setup_dest_fwd_vport() 476 MLX5_CAP_GEN(esw_attr->dests[attr_idx].mdev, vhca_id); in esw_setup_dest_fwd_vport() 983 MLX5_CAP_GEN(from_esw->dev, vhca_id)); in mlx5_eswitch_add_send_to_vport_rule() 997 dest.vport.vhca_id = MLX5_CAP_GEN(rep->esw->dev, vhca_id); in mlx5_eswitch_add_send_to_vport_rule() 1009 dest.vport.vhca_id = MLX5_CAP_GEN(rep->esw->dev, vhca_id); in mlx5_eswitch_add_send_to_vport_rule() 1146 MLX5_CAP_GEN(peer_dev, vhca_id)); in peer_miss_rules_setup() 1159 dest->vport.vhca_id = MLX5_CAP_GEN(peer_dev, vhca_id); in peer_miss_rules_setup() 1274 MLX5_CAP_GEN(peer_dev, vhca_id), flows, GFP_KERNEL); in esw_add_fdb_peer_miss_rules() [all …]
|
| H A D | eswitch.h | 203 ((vport)->vhca_id == MLX5_VHCA_ID_INVALID) 217 int vhca_id; member 680 return esw_owner_vhca_id == MLX5_CAP_GEN(esw->dev, vhca_id) || in mlx5_esw_is_owner() 699 return (MLX5_CAP_GEN(dev, vhca_id) << 16) | vport_num; in mlx5_esw_vport_to_devlink_port_index() 861 int mlx5_eswitch_vhca_id_to_vport(struct mlx5_eswitch *esw, u16 vhca_id, u16 *vport_num); 862 bool mlx5_esw_vport_vhca_id(struct mlx5_eswitch *esw, u16 vportn, u16 *vhca_id); 1029 mlx5_esw_vport_vhca_id(struct mlx5_eswitch *esw, u16 vportn, u16 *vhca_id) in mlx5_esw_vport_vhca_id() argument
|
| H A D | transobj.c | 399 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 D | debugfs.c | 621 seq_printf(file, "0x%x\n", MLX5_CAP_GEN(dev, vhca_id)); in vhca_id_show() 625 DEFINE_SHOW_ATTRIBUTE(vhca_id);
|
| H A D | eswitch.c | 823 vport->vhca_id = MLX5_GET(cmd_hca_cap, hca_caps, vhca_id); in mlx5_esw_vport_caps_get() 843 bool mlx5_esw_vport_vhca_id(struct mlx5_eswitch *esw, u16 vportn, u16 *vhca_id) in mlx5_esw_vport_vhca_id() argument 851 *vhca_id = vport->vhca_id; in mlx5_esw_vport_vhca_id() 1874 vport->vhca_id = MLX5_VHCA_ID_INVALID; in mlx5_esw_vport_alloc()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| H A D | vporttbl.c | 13 u16 vhca_id; member 62 key->vhca_id = MLX5_CAP_GEN(esw->dev, vhca_id); in flow_attr_to_vport_key()
|
| H A D | indir_table.c | 234 dest.vport.vhca_id = MLX5_CAP_GEN(esw->dev, vhca_id); in mlx5_create_indir_fwd_group()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | sd.c | 329 u16 vhca_id_to_be_accessed = MLX5_CAP_GEN(primary, vhca_id); in sd_secondary_create_alias_ft() 336 alias_attr.vhca_id = vhca_id_to_be_accessed; in sd_secondary_create_alias_ft() 400 MLX5_CAP_GEN(primary, vhca_id)); in sd_print_group() 404 MLX5_CAP_GEN(pos, vhca_id)); in sd_print_group() 416 MLX5_CAP_GEN(dev, vhca_id)); in dev_read()
|
| H A D | ipsec_fs_roce.c | 90 u16 vhca_id_to_be_accessed = MLX5_CAP_GEN(ibv_owner, vhca_id); in ipsec_fs_create_aliased_ft() 119 alias_attr.vhca_id = vhca_id_to_be_accessed; in ipsec_fs_create_aliased_ft()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
| H A D | egress_ofld.c | 259 fwd_dest.vport.vhca_id = MLX5_CAP_GEN(esw->dev, vhca_id); in mlx5_esw_acl_egress_vport_bond()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | cmd.h | 91 u16 vhca_id; member 234 u32 vhca_id; member
|
| H A D | mlx5hws.h | 625 u16 vhca_id,
|
| H A D | action.c | 287 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()
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | cmd.c | 259 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 D | mlx5_ifc_vdpa.h | 89 u8 vhca_id[0x10]; member
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | mlx5dr.h | 96 u16 vhca_id);
|
| H A D | fs_dr.c | 188 dest_attr->vport.vhca_id); in create_vport_action() 197 dest_attr->vport.vhca_id); in create_uplink_action()
|
| H A D | dr_action.c | 1219 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()
|