net/mlx5: fix missing errno in probe function
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Thu, 24 May 2018 12:17:57 +0000 (14:17 +0200)
committerShahaf Shuler <shahafs@mellanox.com>
Sun, 17 Jun 2018 08:04:48 +0000 (10:04 +0200)
Fixes: b43802b4bdfe ("net/mlx5: support 16 hardware priorities")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5.c

index efc502a..69f68c5 100644 (file)
@@ -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;