From ad883aa293f364a54671c6aef30f7c5121f6beb2 Mon Sep 17 00:00:00 2001 From: Adrien Mazarguil Date: Wed, 14 Jun 2017 13:49:16 +0200 Subject: [PATCH] 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 --- drivers/net/mlx5/mlx5_rxq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } /** -- 2.20.1