[dpdk-dev] [PATCH 2/2] net/mlx5: fix missing errno in probe code (minor)

Adrien Mazarguil adrien.mazarguil at 6wind.com
Thu May 24 14:17:57 CEST 2018


Fixes: b43802b4bdfe ("net/mlx5: support 16 hardware priorities")
Cc: Xueming Li <xuemingl at mellanox.com>

Signed-off-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>
---
 drivers/net/mlx5/mlx5.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index bbe78de28..36d72f757 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -1141,6 +1141,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
 		if (verb_priorities < MLX5_VERBS_FLOW_PRIO_8) {
 			DRV_LOG(ERR, "port %u wrong Verbs flow priorities: %u",
 				eth_dev->data->port_id, verb_priorities);
+			err = ENOTSUP;
 			goto port_error;
 		}
 		priv->config.max_verbs_prio = verb_priorities;
-- 
2.11.0


More information about the dev mailing list