From patchwork Tue Oct 4 08:00:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Marchand X-Patchwork-Id: 117281 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B18E8A0543; Tue, 4 Oct 2022 10:01:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A4DA440E5A; Tue, 4 Oct 2022 10:01:06 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id DED8740A87 for ; Tue, 4 Oct 2022 10:01:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664870464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p/Pw1BPGH2TDf6F5e0WUMfy0LjvTJB38IBtBC8ZLffo=; b=anTPdTI0boIgeh4I+lsbEB2fyZ4DLZGdayk1Ohyx/EmQ+UtpYexw2VQlR6TQi+DLyCvhKi nEsxOWf4OB8yzGFAmPEzHHXvz3H8cky9xFOrsrXohh399mzfXhxo5bGYNFuvzVfuJijpZ0 Ir7gsUhCRJR3wP1Fjc2hf5A+tMPOfaA= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-657-WgDp8_TWPR6CI2eNEEsz8A-1; Tue, 04 Oct 2022 04:01:02 -0400 X-MC-Unique: WgDp8_TWPR6CI2eNEEsz8A-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 99C193C11066 for ; Tue, 4 Oct 2022 08:01:02 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.195.42]) by smtp.corp.redhat.com (Postfix) with ESMTP id 240DC1402BDC for ; Tue, 4 Oct 2022 08:01:01 +0000 (UTC) From: David Marchand To: dev@dpdk.org Subject: [PATCH] bus/pci: remove VFIO status log in scan Date: Tue, 4 Oct 2022 10:00:52 +0200 Message-Id: <20221004080052.180989-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Linux EAL triggers a scan on all buses, PCI included. Once done, it configures VFIO. Checking for VFIO status in the PCI bus scan is pointless. Signed-off-by: David Marchand --- drivers/bus/pci/linux/pci.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c index c8703d52f3..e69595ca2b 100644 --- a/drivers/bus/pci/linux/pci.c +++ b/drivers/bus/pci/linux/pci.c @@ -452,11 +452,6 @@ rte_pci_scan(void) if (!rte_eal_has_pci()) return 0; -#ifdef VFIO_PRESENT - if (!pci_vfio_is_enabled()) - RTE_LOG(DEBUG, EAL, "VFIO PCI modules not loaded\n"); -#endif - dir = opendir(rte_pci_get_sysfs_path()); if (dir == NULL) { RTE_LOG(ERR, EAL, "%s(): opendir failed: %s\n",