/openbmc/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 | eswitch_offloads.c | 158 MLX5_CAP_GEN(src_esw->dev, vhca_id)); in mlx5_eswitch_set_rule_source_port() 423 return MLX5_CAP_GEN(mdev1, vhca_id) == MLX5_CAP_GEN(mdev2, vhca_id); in esw_same_vhca_id() 470 dest[dest_idx].vport.vhca_id = in esw_setup_dest_fwd_vport() 471 MLX5_CAP_GEN(esw_attr->dests[attr_idx].mdev, vhca_id); in esw_setup_dest_fwd_vport() 970 MLX5_CAP_GEN(from_esw->dev, vhca_id)); in mlx5_eswitch_add_send_to_vport_rule() 984 dest.vport.vhca_id = MLX5_CAP_GEN(rep->esw->dev, vhca_id); in mlx5_eswitch_add_send_to_vport_rule() 996 dest.vport.vhca_id = MLX5_CAP_GEN(rep->esw->dev, vhca_id); in mlx5_eswitch_add_send_to_vport_rule() 1133 MLX5_CAP_GEN(peer_dev, vhca_id)); in peer_miss_rules_setup() 1146 dest->vport.vhca_id = MLX5_CAP_GEN(peer_dev, vhca_id); in peer_miss_rules_setup() 2642 MLX5_CAP_GEN(master, vhca_id)); in esw_set_slave_root_fdb() [all …]
|
H A D | eswitch.h | 637 return esw_owner_vhca_id == MLX5_CAP_GEN(esw->dev, vhca_id) || in mlx5_esw_is_owner() 656 return (MLX5_CAP_GEN(dev, vhca_id) << 16) | vport_num; in mlx5_esw_vport_to_devlink_port_index() 816 int mlx5_eswitch_vhca_id_to_vport(struct mlx5_eswitch *esw, u16 vhca_id, u16 *vport_num);
|
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 | en_rep.c | 413 u16 peer_rule_idx = MLX5_CAP_GEN(peer_esw->dev, vhca_id); in mlx5e_sqs2vport_add_peers_rules() 1592 u16 i = MLX5_CAP_GEN(peer_esw->dev, vhca_id); in mlx5e_vport_rep_event_unpair() 1614 u16 i = MLX5_CAP_GEN(peer_esw->dev, vhca_id); in mlx5e_vport_rep_event_pair()
|
H A D | fs_cmd.c | 183 MLX5_CAP_GEN(master, vhca_id)); in mlx5_cmd_set_slave_root_fdb() 663 dst->dest_attr.vport.vhca_id); in mlx5_cmd_set_fte()
|
H A D | en_tc.c | 1118 peer_id = MLX5_CAP_GEN(peer_mdev, vhca_id); in mlx5e_hairpin_flow_add() 1676 u16 vhca_id; in mlx5e_tc_query_route_vport() local 1684 vhca_id = MLX5_CAP_GEN(route_mdev, vhca_id); in mlx5e_tc_query_route_vport() 1685 err = mlx5_eswitch_vhca_id_to_vport(esw, vhca_id, vport); in mlx5e_tc_query_route_vport() 1695 err = mlx5_eswitch_vhca_id_to_vport(esw, vhca_id, vport); in mlx5e_tc_query_route_vport() 5061 peer_vhca_id = MLX5_CAP_GEN(peer_mdev, vhca_id); in mlx5e_tc_hairpin_update_dead_peer()
|
H A D | main.c | 1796 seq_printf(file, "0x%x\n", MLX5_CAP_GEN(dev, vhca_id)); in vhca_id_show() 1800 DEFINE_SHOW_ATTRIBUTE(vhca_id);
|
H A D | vport.c | 1099 MLX5_CAP_GEN(master_mdev, vhca_id)); in mlx5_nic_vport_affiliate_multiport()
|
/openbmc/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()
|
H A D | bridge_mcast.c | 613 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()
|
/openbmc/linux/drivers/vfio/pci/mlx5/ |
H A D | cmd.c | 34 u16 *vhca_id); 62 MLX5_SET(suspend_vhca_in, in, vhca_id, mvdev->vhca_id); in mlx5vf_cmd_suspend_vhca() 82 MLX5_SET(resume_vhca_in, in, vhca_id, mvdev->vhca_id); in mlx5vf_cmd_resume_vhca() 127 MLX5_SET(query_vhca_migration_state_in, in, vhca_id, mvdev->vhca_id); in mlx5vf_cmd_query_vhca_migration_state() 226 &mvdev->vhca_id)) in mlx5vf_cmd_set_migratable() 262 u16 *vhca_id) in mlx5vf_cmd_get_vhca_id() argument 285 *vhca_id = MLX5_GET(query_hca_cap_out, out, in mlx5vf_cmd_get_vhca_id() 286 capability.cmd_hca_cap.vhca_id); in mlx5vf_cmd_get_vhca_id() 605 MLX5_SET(save_vhca_state_in, in, vhca_id, mvdev->vhca_id); in mlx5vf_cmd_save_vhca_state() 680 MLX5_SET(load_vhca_state_in, in, vhca_id, mvdev->vhca_id); in mlx5vf_cmd_load_vhca_state() [all …]
|
H A D | cmd.h | 162 u16 vhca_id; member
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | std_types.c | 106 capability.cmd_hca_cap.vhca_id); in fill_vport_vhca_id() 138 info->esw_owner_vhca_id = MLX5_CAP_GEN(mdev, vhca_id); in fill_switchdev_info()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
H A D | port_sel.c | 84 dest.vport.vhca_id = MLX5_CAP_GEN(ldev->pf[affinity - 1].dev, in mlx5_lag_create_port_sel_table() 85 vhca_id); in mlx5_lag_create_port_sel_table() 586 dest.vport.vhca_id = MLX5_CAP_GEN(ldev->pf[ports[idx] - 1].dev, in __mlx5_lag_modify_definers_destinations() 587 vhca_id); in __mlx5_lag_modify_definers_destinations()
|
/openbmc/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()
|
/openbmc/linux/include/linux/mlx5/ |
H A D | mlx5_ifc_vdpa.h | 85 u8 vhca_id[0x10]; member
|
H A D | fs.h | 169 u16 vhca_id; member
|
H A D | mlx5_ifc.h | 1474 u8 vhca_id[0x10]; member 2263 u8 vhca_id[0x10]; member 2317 u8 vhca_id[0x10]; member 10263 u8 vhca_id[0x10]; member 12363 u8 vhca_id[0x10]; member 12390 u8 vhca_id[0x10]; member 12413 u8 vhca_id[0x10]; member 12441 u8 vhca_id[0x10]; member 12471 u8 vhca_id[0x10]; member 12532 u8 vhca_id[0x10]; member
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | mlx5dr.h | 98 u16 vhca_id);
|
H A D | dr_cmd.c | 62 *gvmi = MLX5_GET(query_hca_cap_out, out, capability.cmd_hca_cap.vhca_id); in mlx5dr_cmd_query_gvmi() 119 caps->gvmi = MLX5_CAP_GEN(mdev, vhca_id); in mlx5dr_cmd_query_device() 909 fte->dest_arr[i].vport.vhca_id); in mlx5dr_cmd_set_fte()
|
H A D | fs_dr.c | 196 dest_attr->vport.vhca_id); in create_vport_action() 205 dest_attr->vport.vhca_id); in create_uplink_action()
|
H A D | dr_action.c | 1209 hw_dests[i].vport.vhca_id = dest_action->vport->caps->vhca_gvmi; in mlx5dr_action_create_mult_dest_tbl() 2079 u16 vhca_id) in mlx5dr_action_create_dest_vport() argument 2087 (vhca_id != dmn->info.caps.gvmi); in mlx5dr_action_create_dest_vport() 2088 vport_dmn = peer_vport ? xa_load(&dmn->peer_dmn_xa, vhca_id) : dmn; in mlx5dr_action_create_dest_vport()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
H A D | bridge.c | 86 *esw_owner_vhca_id = MLX5_CAP_GEN(priv->mdev, vhca_id); in mlx5_esw_bridge_rep_vport_num_vhca_id_get()
|