[dpdk-dev] [PATCH 3/3] net/mlx5: fix interrupt enable return value

Shachar Beiser shacharbe at mellanox.com
Mon Sep 4 13:48:47 CEST 2017


Fixes: 3c7d44af252a ("net/mlx5: support user space Rx interrupt event")
Cc: stable at dpdk.org

Signed-off-by: Shachar Beiser <shacharbe at mellanox.com>
---
 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 437dc02..24887fb 100644
--- a/drivers/net/mlx5/mlx5_rxq.c
+++ b/drivers/net/mlx5/mlx5_rxq.c
@@ -1330,7 +1330,7 @@
 	struct priv *priv = mlx5_get_priv(dev);
 	struct rxq *rxq = (*priv->rxqs)[rx_queue_id];
 	struct rxq_ctrl *rxq_ctrl = container_of(rxq, struct rxq_ctrl, rxq);
-	int ret;
+	int ret = 0;
 
 	if (!rxq || !rxq_ctrl->channel) {
 		ret = EINVAL;
-- 
1.8.3.1



More information about the dev mailing list