static void mlx5e_disable_sq(struct mlx5e_sq *sq) { struct mlx5e_channel *c = sq->channel; struct mlx5e_priv *priv = c->priv; struct mlx5_core_dev *mdev = priv->mdev; mlx5_core_destroy_sq(mdev, sq->sqn); }
int mlx5_core_create_sq_tracked(struct mlx5_core_dev *dev, u32 *in, int inlen, struct mlx5_core_qp *sq) { int err; err = mlx5_core_create_sq(dev, in, inlen, &sq->qpn); if (err) return err; err = create_qprqsq_common(dev, sq, MLX5_RES_SQ); if (err) mlx5_core_destroy_sq(dev, sq->qpn); return err; }
void mlx5_core_destroy_sq_tracked(struct mlx5_core_dev *dev, struct mlx5_core_qp *sq) { destroy_qprqsq_common(dev, sq, MLX5_RES_SQ); mlx5_core_destroy_sq(dev, sq->qpn); }