From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2CAA2A0545; Wed, 25 Nov 2020 20:20:53 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6900DC9B4; Wed, 25 Nov 2020 20:19:33 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id ABA7FC9A8; Wed, 25 Nov 2020 20:19:29 +0100 (CET) IronPort-SDR: nbPeMqm7Y2gLh+wJuI4ye0M+sk0Y/bkid4s+fvGVXmdL40McwKuUqCtduafIIT2NXVm9BJcz+I +vasrAoRON9g== X-IronPort-AV: E=McAfee;i="6000,8403,9816"; a="151447623" X-IronPort-AV: E=Sophos;i="5.78,370,1599548400"; d="scan'208";a="151447623" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2020 11:19:28 -0800 IronPort-SDR: GHEX1tFZIStQKe2yAZFmekdeGB5udeXJ4U/wLutdUzeq8xdrp2fQ4oOfR8rChvrbJvitbXCPxP dozX/jYmFiJg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,370,1599548400"; d="scan'208";a="547413861" Received: from silpixa00399752.ir.intel.com (HELO silpixa00399752.ger.corp.intel.com) ([10.237.222.180]) by orsmga005.jf.intel.com with ESMTP; 25 Nov 2020 11:19:27 -0800 From: Ferruh Yigit To: Thomas Monjalon Cc: Ferruh Yigit , dev@dpdk.org, techboard@dpdk.org, Stephen Hemminger , Bruce Richardson Date: Wed, 25 Nov 2020 19:19:07 +0000 Message-Id: <20201125191908.1867106-6-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201125191908.1867106-1-ferruh.yigit@intel.com> References: <20201125191908.1867106-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 5/6] usertools/setup: fix loading vfio module 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" script is checking the existing of the kernel module file, but in some distros kernel modules are stored compressed, like as 'vfio-pci.ko.xz'. Add wildcard to cover both compressed and not compressed cases. Signed-off-by: Ferruh Yigit --- usertools/dpdk-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usertools/dpdk-setup.sh b/usertools/dpdk-setup.sh index 1e36661e572e..e8667e094a53 100755 --- a/usertools/dpdk-setup.sh +++ b/usertools/dpdk-setup.sh @@ -62,7 +62,7 @@ load_vfio_module() { remove_vfio_module - VFIO_PATH="kernel/drivers/vfio/pci/vfio-pci.ko" + VFIO_PATH="kernel/drivers/vfio/pci/vfio-pci.ko*" echo "Loading VFIO module" /sbin/lsmod | grep -s vfio_pci > /dev/null -- 2.26.2