From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A657B42597; Thu, 14 Sep 2023 14:36:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2793A40293; Thu, 14 Sep 2023 14:36:28 +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 7275340289 for ; Thu, 14 Sep 2023 14:36:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694694985; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qXx7DPxDiE6yejcmgZkD3rqXBHZ270klhvuRK97RLZM=; b=R2W8i78XPknK867GVmw6sIjCIPr8Pion8wQgOfzBf9A6usfKG/gYb6B+9cKk7pB0NHaPeK 55/GfM6/mZG9+KdnthhjBcaBs31NvBGzcJsPtf/tEJVXHlWP1ZzeC3VvZwRqTMKO7GzGB7 Yk349V39gV/byAJ87jAwfEbMSX/gOew= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-311-Z6iG_eQiMHmTuzQwVQLW3A-1; Thu, 14 Sep 2023 08:36:21 -0400 X-MC-Unique: Z6iG_eQiMHmTuzQwVQLW3A-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8BF5C185A79B; Thu, 14 Sep 2023 12:36:20 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.225.25]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4384610F1BE7; Thu, 14 Sep 2023 12:36:19 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@amd.com, chenbo.xia@intel.com, nipun.gupta@amd.com, bruce.richardson@intel.com Subject: [PATCH v3 00/15] Cleanup PCI(e) drivers Date: Thu, 14 Sep 2023 14:35:59 +0200 Message-ID: <20230914123615.1705654-1-david.marchand@redhat.com> In-Reply-To: <20230803075038.307012-1-david.marchand@redhat.com> References: <20230803075038.307012-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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 Rather than rely on Linux headers to find some PCI(e) standard constants or reinvent the same PCI capability helper, this series complements the pci library and the pci bus driver. PCI drivers can then use OS agnostic macros and helpers. -- David Marchand Changes since v2: - fixed vendor capability handling in virtio drivers (thanks Chenbo!), Changes since v1: - fix VFIO-backed drivers broken by v1 patch 3, - enhanced rte_pci.h defines organisation, David Marchand (15): drivers: remove duplicated PCI master control bus/pci: add const to some experimental API bus/pci: rework MSIX discovery with VFIO bus/pci: find PCI capability pci: define some capability constants pci: define some MSIX constants pci: define some command constants pci: define some BAR constants pci: define some PM constants pci: define some PCIe constants pci: define some extended capability constants pci: define some ACS constants pci: define some PRI constants pci: define some AER constants devtools: forbid inclusion of Linux header for PCI devtools/checkpatches.sh | 8 ++ drivers/bus/pci/linux/pci_init.h | 18 ---- drivers/bus/pci/linux/pci_uio.c | 32 +----- drivers/bus/pci/linux/pci_vfio.c | 148 ++++++-------------------- drivers/bus/pci/pci_common.c | 58 ++++++++++- drivers/bus/pci/rte_bus_pci.h | 57 +++++++++- drivers/bus/pci/version.map | 5 + drivers/crypto/virtio/virtio_pci.c | 67 ++++-------- drivers/event/dlb2/pf/dlb2_main.c | 156 ++++++++-------------------- drivers/net/bnx2x/bnx2x.c | 86 ++++++++------- drivers/net/bnx2x/bnx2x.h | 46 -------- drivers/net/cxgbe/base/adapter.h | 31 +----- drivers/net/gve/gve_ethdev.c | 46 +------- drivers/net/gve/gve_ethdev.h | 14 +-- drivers/net/hns3/hns3_ethdev_vf.c | 109 +++---------------- drivers/net/ngbe/base/ngbe_hw.c | 20 +--- drivers/net/ngbe/base/ngbe_osdep.h | 3 - drivers/net/virtio/virtio_pci.c | 131 ++++------------------- drivers/vdpa/ifc/base/ifcvf_osdep.h | 4 +- lib/pci/rte_pci.h | 93 +++++++++++++++-- 20 files changed, 396 insertions(+), 736 deletions(-) -- 2.41.0