From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f177.google.com (mail-wj0-f177.google.com [209.85.210.177]) by dpdk.org (Postfix) with ESMTP id 1687C558B for ; Tue, 22 Nov 2016 11:27:17 +0100 (CET) Received: by mail-wj0-f177.google.com with SMTP id xy5so40171130wjc.0 for ; Tue, 22 Nov 2016 02:27:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ufoMPwbvl9soCOFrBFTJyOYJAEwQUJDBbLzEI+jZ8A8=; b=aRcvvF6XTgqvKBjX0puGjvGHwTKFFu3Z54STkhHoWDTOw+j6794Y1GQdfw66YF5tvr W9rfQPQiLGjEvePE0ZxWb9Fj8PqvnbTQPjqjIoC2oB//yj5jzu3k1BsSSsb9FkJu1mYL bHKssByIp2vHsXXu6OEAWS7V6/BnX6RNGEKER8vnSRGngAKIWtmAxlCOPypJSpgtH8Pa DbKrpcYFgtDmFK+hI6bI1k1JphSsgoS3meWV3zDW+oUc4fH2wy/oa5xmThwLwN/rJhsW IgIbT41rFGcHAbH5PzfKl2WlIsTe3d2xcOifYthd4ZY9PUS6jS1iKrM+JsSBppD4vWtn xIHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ufoMPwbvl9soCOFrBFTJyOYJAEwQUJDBbLzEI+jZ8A8=; b=GrYQWluurHeOtEMHmZv7g6i8U2Uqds4FKmdX+ybQAJ+O0doC3Uqzy1QEH1qMwg36EA J9BBscky85vvYIi8mvZZ13tslDOB5S0p75CPuwC6OrjmSKEypxSAKPFMGEqpqQQm0JND UcTQ5tBYE3A1cwv9+WSQOUtmXHANSLxF0oNkVwVF3jxsPCtLVbc2ar2rFeOlZgqxZbJ/ fK/r4Wv5lm8W7pLkRI/I7MJ5SZhUsOtZicB6gMebr16AHoe7GCuYTbcc73YZBpxdOAiN gxNmYfXa8JY2/KHkYAyGRZtuLoq0mp5J9RXkpGRJ3bFQDcIDpNADwlOHPzFz0Yu+OE40 z1ug== X-Gm-Message-State: AKaTC009Hojuyy46vuonMqhbvXrqjt9X22gSPiD7VVNcxMh0l/QpcNTNPSEW/eVPwV8PIWin X-Received: by 10.194.188.9 with SMTP id fw9mr13350549wjc.213.1479810436752; Tue, 22 Nov 2016 02:27:16 -0800 (PST) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id b7sm30068233wjm.39.2016.11.22.02.27.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Nov 2016 02:27:16 -0800 (PST) Date: Tue, 22 Nov 2016 11:27:08 +0100 From: Adrien Mazarguil To: Olivier Matz Cc: dev@dpdk.org, nhorman@tuxdriver.com, thomas.monjalon@6wind.com, vido@cesnet.cz, fiona.trahe@intel.com, stephen@networkplumber.org Message-ID: <20161122102708.GH409@6wind.com> References: <1473949355-6787-1-git-send-email-olivier.matz@6wind.com> <1479808257-8725-1-git-send-email-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1479808257-8725-1-git-send-email-olivier.matz@6wind.com> Subject: Re: [dpdk-dev] [PATCH v2] drivers: advertise kmod dependencies in pmdinfo X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2016 10:27:18 -0000 Hi Olivier, Neither mlx4 nor mlx5 depend on igb/uio/vfio modules, please see below. On Tue, Nov 22, 2016 at 10:50:57AM +0100, Olivier Matz wrote: > Add a new macro RTE_PMD_REGISTER_KMOD_DEP() that allows a driver to > declare the list of kernel modules required to run properly. > > Today, most PCI drivers require uio/vfio. > > Signed-off-by: Olivier Matz > Acked-by: Fiona Trahe > --- [...] > diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c > index da61a85..a0065bf 100644 > --- a/drivers/net/mlx4/mlx4.c > +++ b/drivers/net/mlx4/mlx4.c > @@ -5937,3 +5937,4 @@ rte_mlx4_pmd_init(void) > > RTE_PMD_EXPORT_NAME(net_mlx4, __COUNTER__); > RTE_PMD_REGISTER_PCI_TABLE(net_mlx4, mlx4_pci_id_map); > +RTE_PMD_REGISTER_KMOD_DEP(net_mlx4, "* igb_uio | uio_pci_generic | vfio"); RTE_PMD_REGISTER_KMOD_DEP(net_mlx4, "* ib_uverbs & mlx4_en & mlx4_core & mlx4_ib"); > diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c > index 90cc35e..b0343f3 100644 > --- a/drivers/net/mlx5/mlx5.c > +++ b/drivers/net/mlx5/mlx5.c > @@ -759,3 +759,4 @@ rte_mlx5_pmd_init(void) > > RTE_PMD_EXPORT_NAME(net_mlx5, __COUNTER__); > RTE_PMD_REGISTER_PCI_TABLE(net_mlx5, mlx5_pci_id_map); > +RTE_PMD_REGISTER_KMOD_DEP(net_mlx5, "* igb_uio | uio_pci_generic | vfio"); RTE_PMD_REGISTER_KMOD_DEP(net_mlx5, "* ib_uverbs & mlx5_core & mlx5_ib"); -- Adrien Mazarguil 6WIND