From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: Kernel Module dependency in DPDK 18.05-rc5 and earlier DPDK releases Date: Fri, 25 May 2018 13:21:18 +0200 Message-ID: <2384240.a6VFuv6gqB@xps> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Kevin Wilson Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 604103195 for ; Fri, 25 May 2018 13:22:32 +0200 (CEST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 25/05/2018 11:55, Kevin Wilson: > Hi, > > I am facing the following issue in DPDK 18.05-rc5 (I saw it also with earlier > releases of DPDK from the last year). The issue is with defining > dependency on a kernel module in a PMD. > I want to develop a PMD which requiers that before running DPDK app which > uses this PMD, a specified kernel module is required to be insmoded. > I tried to add a call to RTE_PMD_REGISTER_KMOD_DEP in my PMD, > specifying a required > kernel module, and I expected that when calling a DPDK app which uses > this PMD it will shout that such a kernel module is not loaded, but this did not > happen. No such check is implemented currently. You can try to implement a check in EAL in the probing function.