Lines Matching refs:rep

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