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

Signed-off-by: Adrien Mazarguil <adrien.mazarg...@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

Reply via email to