From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 872EFA05D3 for ; Fri, 24 May 2019 00:01:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9CA92493D; Fri, 24 May 2019 00:01:29 +0200 (CEST) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id BF7431D7 for ; Fri, 24 May 2019 00:01:28 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id c6so3984811pfa.10 for ; Thu, 23 May 2019 15:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=J5cH/yG842tzBxQblOo2fXLdRBgPhiI3+5mgOU6oH10=; b=kCK9XAP1q73gua76ndKd2JWeJYgb6zd2/UqOW9ybCcE0y6R0PvnAbXGsJh1Za5Y/hx TyPZwNvoKXHSxr3acZWOhrkEOfaS3QxyF7FKLX7iuCkKz1H1Cf24RicBai+H9wgc7gY6 m3H/ihsWyYO3CjrXnLTSCNn8XwRN+qTB1Q4Z5+tiBhvqJr4vcBd4W6Jxp+UOE50vOTQb 4GJPAXoIpaKbL1c8gm1/UiZ0PKgK74CQ8J5X/L+DtFoz5Wh/nQuimOG+vJHCfmt5yj+I H8WuFPuyO482o89IQyqgFMfH8qLO2k8p2PVQJn9Jlxx2R+SdN645mF686NT8ITB8QbXE OoXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=J5cH/yG842tzBxQblOo2fXLdRBgPhiI3+5mgOU6oH10=; b=lsGYKSXj++vzSysT07PwFd8ICSd+JJhjObo4hku3RwlMqP7ba7kPwvHnPrImfr1Nh+ 8AGebVwyBgDfJtcMlZTaK2BSKJs26xqa6Ddcccl8TeGuB8AyLOvERkIWjb9buQGXTPux l+3LDGHg5uvaXrbISlKIvKBqyWoLHFfFZcKKTfHfrIoRGfomsODROEYEA+nWBlt0ccDO 51Bmzj8qSZwVVq0pVoVOMMbLIpmM30cEb62iRy++NyHVpC76KH9j0btE3FFCFJ9liDeb iOgVvrC1eSqfu9OLMkfY22LcbYWSs7vA9dOZ4fGAM0qcSdpt8ymJ6IOWnmFWMuQmwj+S /cZw== X-Gm-Message-State: APjAAAVt37r+N0l/NVqAUj6IWBlpJJ7bs5JE8eJ3P30h39x1C5hlpyD7 5oaZeb7oOidIEwLMIzzSVpR+ng== X-Google-Smtp-Source: APXvYqwkgRfMyx2HApO2bdoRwGTlqX00xzRG0GNoPvJTy0h9962+61DabcRW9HvW+5s4miArubHWuw== X-Received: by 2002:a63:d901:: with SMTP id r1mr16057066pgg.271.1558648887773; Thu, 23 May 2019 15:01:27 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id b4sm398099pfd.120.2019.05.23.15.01.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 May 2019 15:01:26 -0700 (PDT) From: Stephen Hemminger To: matan@mellanox.com Cc: dev@dpdk.org, Stephen Hemminger , Stephen Hemminger Date: Thu, 23 May 2019 15:01:24 -0700 Message-Id: <20190523220124.18818-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] net/vdev_netvsc: print warning if Mellanox devices are not configured X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Several users have run into problems where the MLX drivers were not enabled in their build. And then trying to run their DPDK application on Azure. What happens is that all packets go over the slow path, and failsafe repeatedly probes for never existing sub-device. Both Mellanox drivers should be checked. MLX4 for current versions, and MLX5 for future upgrades. This code is only called if Hyper-V/Azure is detected. Signed-off-by: Stephen Hemminger --- drivers/net/vdev_netvsc/vdev_netvsc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/vdev_netvsc/vdev_netvsc.c b/drivers/net/vdev_netvsc/vdev_netvsc.c index 801f54c96e01..64f9dbf66e18 100644 --- a/drivers/net/vdev_netvsc/vdev_netvsc.c +++ b/drivers/net/vdev_netvsc/vdev_netvsc.c @@ -812,6 +812,13 @@ vdev_netvsc_scan_callback(__rte_unused void *arg) struct rte_devargs *devargs; struct rte_bus *vbus = rte_bus_find_by_name("vdev"); +#ifndef RTE_LIBRTE_MLX4_PMD + DRV_LOG(WARNING, "Mellanox MLX4 not configured."); +#endif +#ifndef RTE_LIBRTE_MLX5_PMD + DRV_LOG(WARNING, "Mellanox MLX5 not configured."); +#endif + RTE_EAL_DEVARGS_FOREACH("vdev", devargs) if (!strncmp(devargs->name, VDEV_NETVSC_DRIVER_NAME, VDEV_NETVSC_DRIVER_NAME_LEN)) -- 2.20.1