Lines Matching refs:rep
12 struct mlx5_eswitch_rep *rep,
21 ibdev->port[vport_index].rep = rep;
22 rep->rep_data[REP_IB].priv = ibdev;
25 mlx5_ib_get_rep_netdev(rep->esw, rep->vport);
50 mlx5_ib_vport_rep_load(struct mlx5_core_dev *dev, struct mlx5_eswitch_rep *rep)
62 vport_index = rep->vport_index;
68 if (rep->vport == MLX5_VPORT_UPLINK) {
88 if (rep->vport == MLX5_VPORT_UPLINK && !new_uplink)
91 return mlx5_ib_set_vport_rep(lag_master, rep, vport_index);
105 vport_index = rep->vport_index;
106 ibdev->port[vport_index].rep = rep;
108 mlx5_ib_get_rep_netdev(lag_master->priv.eswitch, rep->vport);
116 rep->rep_data[REP_IB].priv = ibdev;
129 static void *mlx5_ib_rep_to_dev(struct mlx5_eswitch_rep *rep)
131 return rep->rep_data[REP_IB].priv;
135 mlx5_ib_vport_rep_unload(struct mlx5_eswitch_rep *rep)
137 struct mlx5_core_dev *mdev = mlx5_eswitch_get_core_dev(rep->esw);
138 struct mlx5_ib_dev *dev = mlx5_ib_rep_to_dev(rep);
139 int vport_index = rep->vport_index;
151 if (rep->vport == MLX5_VPORT_UPLINK && !mlx5_lag_is_mpesw(mdev))
154 if (dev->port[i].rep == rep)
166 rep->rep_data[REP_IB].priv = NULL;
167 port->rep = NULL;
169 if (rep->vport == MLX5_VPORT_UPLINK) {
216 struct mlx5_eswitch_rep *rep;
221 if (!dev->port[port - 1].rep)
224 rep = dev->port[port - 1].rep;
226 return mlx5_eswitch_add_send_to_vport_rule(esw, esw, rep, sq->base.mqp.qpn);
252 { .name = MLX5_ADEV_NAME ".rdma-rep", },
259 .name = "rep",