From c6ce7e34ad5e970e91ffd0c9e484d89bef55f70e Mon Sep 17 00:00:00 2001 From: Adrien Mazarguil Date: Thu, 24 May 2018 14:17:57 +0200 Subject: [PATCH] net/mlx5: fix missing errno in probe function Fixes: b43802b4bdfe ("net/mlx5: support 16 hardware priorities") Cc: stable@dpdk.org Signed-off-by: Adrien Mazarguil Acked-by: Yongseok Koh --- 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 efc502aba0..69f68c532b 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -1145,6 +1145,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.20.1