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 E6BABA052A; Thu, 26 Nov 2020 15:20:24 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 71C8FC9C2; Thu, 26 Nov 2020 15:18:58 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 72A70C9B4; Thu, 26 Nov 2020 15:18:53 +0100 (CET) IronPort-SDR: Ifocl+fUehR0va9lI3Vw0TduvFxA2HrPODCjNWdLQJGhHaAiUUsQPIGPOI9caJUIZFQG3bqIMB M/MbOchRXfww== X-IronPort-AV: E=McAfee;i="6000,8403,9816"; a="172445632" X-IronPort-AV: E=Sophos;i="5.78,372,1599548400"; d="scan'208";a="172445632" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2020 06:18:52 -0800 IronPort-SDR: E94xaAo9G1UirvR9vFUzYIxC2Ayx8eUKIk4Y0qZ2RIxi3dKQ84NFnai+IkXBHK2XxIwJHCNIYZ W6IIBwYpeprA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,372,1599548400"; d="scan'208";a="333392352" Received: from silpixa00399752.ir.intel.com (HELO silpixa00399752.ger.corp.intel.com) ([10.237.222.180]) by orsmga006.jf.intel.com with ESMTP; 26 Nov 2020 06:18:51 -0800 From: Ferruh Yigit To: Thomas Monjalon Cc: Ferruh Yigit , dev@dpdk.org, techboard@dpdk.org, Stephen Hemminger , Bruce Richardson , conor.walsh@intel.com Date: Thu, 26 Nov 2020 14:18:31 +0000 Message-Id: <20201126141832.2277628-6-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201126141832.2277628-1-ferruh.yigit@intel.com> References: <20201126141832.2277628-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 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