From: Adrien Mazarguil Date: Wed, 14 Jun 2017 11:49:16 +0000 (+0200) Subject: net/mlx5: fix return value in Rx interrupts code X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ad883aa293f364a54671c6aef30f7c5121f6beb2;p=dpdk.git net/mlx5: fix return value in Rx interrupts code A negative return value is documented for that function in case of error. Fixes: 3c7d44af252a ("net/mlx5: support user space Rx interrupt event") Cc: stable@dpdk.org Signed-off-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c index 4ed2d9da6c..43a775698f 100644 --- a/drivers/net/mlx5/mlx5_rxq.c +++ b/drivers/net/mlx5/mlx5_rxq.c @@ -1448,7 +1448,7 @@ mlx5_rx_intr_enable(struct rte_eth_dev *dev, uint16_t rx_queue_id) ret = ibv_req_notify_cq(cq, 0); if (ret) WARN("unable to arm interrupt on rx queue %d", rx_queue_id); - return ret; + return -ret; } /**