From: Dekel Peled Date: Wed, 8 May 2019 08:29:40 +0000 (+0300) Subject: net/mlx5: fix description of return value X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cf9f7115f0f9f394594a069b4eb02120bdaacc8a;p=dpdk.git net/mlx5: fix description of return value Return value of function mlx5_rxq_releasable() was not described correctly in function description. This patch updates the description to correctly describe the optional return values. Fixes: a6d83b6a9209 ("net/mlx5: standardize on negative errno values") Cc: stable@dpdk.org Signed-off-by: Dekel Peled Acked-by: Shahaf Shuler Acked-by: Yongseok Koh --- diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c index f595e7a52b..f10e8963c1 100644 --- a/drivers/net/mlx5/mlx5_rxq.c +++ b/drivers/net/mlx5/mlx5_rxq.c @@ -1527,8 +1527,9 @@ mlx5_rxq_release(struct rte_eth_dev *dev, uint16_t idx) * RX queue index. * * @return - * 1 if the queue can be released, negative errno otherwise and rte_errno is - * set. + * 1 if the queue can be released + * 0 if the queue can not be released, there are references to it. + * Negative errno and rte_errno is set if queue doesn't exist. */ int mlx5_rxq_releasable(struct rte_eth_dev *dev, uint16_t idx)