Home
last modified time | relevance | path

Searched refs:peer_mdev (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dib_rep.c119 struct mlx5_core_dev *peer_mdev; in mlx5_ib_vport_rep_unload() local
123 peer_mdev = mlx5_lag_get_peer_mdev(mdev); in mlx5_ib_vport_rep_unload()
124 vport_index += mlx5_eswitch_get_total_vports(peer_mdev); in mlx5_ib_vport_rep_unload()
138 struct mlx5_core_dev *peer_mdev; in mlx5_ib_vport_rep_unload() local
142 peer_mdev = mlx5_lag_get_peer_mdev(mdev); in mlx5_ib_vport_rep_unload()
143 esw = peer_mdev->priv.eswitch; in mlx5_ib_vport_rep_unload()
158 struct mlx5_core_dev *peer_mdev = mlx5_lag_get_peer_mdev(mdev); in mlx5_ib_register_peer_vport_reps() local
161 if (!peer_mdev) in mlx5_ib_register_peer_vport_reps()
164 esw = peer_mdev->priv.eswitch; in mlx5_ib_register_peer_vport_reps()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Dtransobj.c323 err = mlx5_hairpin_create_sq(hp->peer_mdev, params, &hp->sqn[i]); in mlx5_hairpin_create_queues()
332 mlx5_core_destroy_sq(hp->peer_mdev, hp->sqn[j]); in mlx5_hairpin_create_queues()
347 mlx5_core_destroy_sq(hp->peer_mdev, hp->sqn[i]); in mlx5_hairpin_destroy_queues()
371 static int mlx5_hairpin_modify_sq(struct mlx5_core_dev *peer_mdev, u32 sqn, in mlx5_hairpin_modify_sq() argument
388 return mlx5_core_modify_sq(peer_mdev, sqn, in); in mlx5_hairpin_modify_sq()
397 err = mlx5_hairpin_modify_sq(hp->peer_mdev, hp->sqn[i], in mlx5_hairpin_pair_queues()
408 MLX5_CAP_GEN(hp->peer_mdev, vhca_id), hp->sqn[i]); in mlx5_hairpin_pair_queues()
422 mlx5_hairpin_modify_sq(hp->peer_mdev, hp->sqn[j], MLX5_SQC_STATE_RDY, in mlx5_hairpin_pair_queues()
432 mlx5_hairpin_modify_sq(hp->peer_mdev, hp->sqn[i], MLX5_SQC_STATE_RDY, in mlx5_hairpin_unpair_peer_sq()
451 struct mlx5_core_dev *peer_mdev, in mlx5_core_hairpin_create() argument
[all …]
Den_tc.c861 struct mlx5_core_dev *func_mdev, *peer_mdev; in mlx5e_hairpin_create() local
871 peer_mdev = mlx5e_hairpin_get_mdev(dev_net(priv->netdev), peer_ifindex); in mlx5e_hairpin_create()
872 if (IS_ERR(peer_mdev)) { in mlx5e_hairpin_create()
873 err = PTR_ERR(peer_mdev); in mlx5e_hairpin_create()
877 pair = mlx5_core_hairpin_create(func_mdev, peer_mdev, params); in mlx5e_hairpin_create()
952 dev_name(hpe->hp->pair->peer_mdev->device)); in mlx5e_hairpin_put()
1007 struct mlx5_core_dev *peer_mdev; in mlx5e_hairpin_flow_add() local
1016 peer_mdev = mlx5e_hairpin_get_mdev(dev_net(priv->netdev), peer_ifindex); in mlx5e_hairpin_flow_add()
1017 if (IS_ERR(peer_mdev)) { in mlx5e_hairpin_flow_add()
1019 return PTR_ERR(peer_mdev); in mlx5e_hairpin_flow_add()
[all …]
/linux-6.1.9/include/linux/mlx5/
Dtransobj.h72 struct mlx5_core_dev *peer_mdev; member
84 struct mlx5_core_dev *peer_mdev,