static void mlx5e_disable_rq(struct mlx5e_rq *rq) { struct mlx5e_channel *c = rq->channel; struct mlx5e_priv *priv = c->priv; struct mlx5_core_dev *mdev = priv->mdev; mlx5_core_destroy_rq(mdev, rq->rqn); }
int mlx5_core_create_rq_tracked(struct mlx5_core_dev *dev, u32 *in, int inlen, struct mlx5_core_qp *rq) { int err; err = mlx5_core_create_rq(dev, in, inlen, &rq->qpn); if (err) return err; err = create_qprqsq_common(dev, rq, MLX5_RES_RQ); if (err) mlx5_core_destroy_rq(dev, rq->qpn); return err; }
void mlx5_core_destroy_rq_tracked(struct mlx5_core_dev *dev, struct mlx5_core_qp *rq) { destroy_qprqsq_common(dev, rq, MLX5_RES_RQ); mlx5_core_destroy_rq(dev, rq->qpn); }