From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 7646C379B for ; Tue, 22 Nov 2016 11:32:05 +0100 (CET) Received: from lfbn-1-5996-232.w90-110.abo.wanadoo.fr ([90.110.195.232] helo=[192.168.1.13]) by mail.droids-corp.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1c98QF-0000ZY-1h; Tue, 22 Nov 2016 11:35:33 +0100 To: Adrien Mazarguil References: <1473949355-6787-1-git-send-email-olivier.matz@6wind.com> <1479808257-8725-1-git-send-email-olivier.matz@6wind.com> <20161122102708.GH409@6wind.com> Cc: dev@dpdk.org, nhorman@tuxdriver.com, thomas.monjalon@6wind.com, vido@cesnet.cz, fiona.trahe@intel.com, stephen@networkplumber.org From: Olivier Matz Message-ID: <0cfb9b2f-2e98-26bc-bda1-64f0841755e2@6wind.com> Date: Tue, 22 Nov 2016 11:31:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161122102708.GH409@6wind.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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:32:05 -0000 Hi Adrien, On 11/22/2016 11:27 AM, Adrien Mazarguil wrote: > 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"); > Thank you for reviewing. I messed up in the rebase, the v1 was closer to what you suggest, sorry. I'll send an update. Olivier