search for: connect_qps

Displaying 1 result from an estimated 1 matches for "connect_qps".

2020 Jul 16
0
[PATCH vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices
...ndev, cmd, &in, &inlen, &out, &outlen, get_qpn(mvq, fw), get_rqpn(mvq, fw)); > + if (!in || !out) > + return -ENOMEM; > + > + err = mlx5_cmd_exec(ndev->mvdev.mdev, in, inlen, out, outlen); > + free_inout(in, out); > + return err; > +} > + > +static int connect_qps(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq) > +{ > + int err; > + > + err = modify_qp(ndev, mvq, true, MLX5_CMD_OP_2RST_QP); > + if (err) > + return err; > + > + err = modify_qp(ndev, mvq, false, MLX5_CMD_OP_2RST_QP); > + if (err) > + return err; &gt...