From: Adrien Mazarguil Date: Thu, 24 May 2018 12:17:57 +0000 (+0200) Subject: net/mlx5: fix missing errno in probe function X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c6ce7e34ad5e970e91ffd0c9e484d89bef55f70e;p=dpdk.git 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 --- 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;