> -----Original Message-----
> From: David Marchand <david.march...@redhat.com>
> Sent: Thursday, September 14, 2023 8:36 PM
> To: dev@dpdk.org
> Cc: tho...@monjalon.net; ferruh.yi...@amd.com; Xia, Chenbo
> <chenbo....@intel.com>; nipun.gu...@amd.com; Richardson, Bruce
> <bruce.richard...@intel.com>; Burakov, Anatoly <anatoly.bura...@intel.com>;
> Jay Zhou <jianjay.z...@huawei.com>; Sevincer, Abdullah
> <abdullah.sevin...@intel.com>; Julien Aube <julien_d...@jaube.fr>; Rahul
> Lakkireddy <rahul.lakkire...@chelsio.com>; Guo, Junfeng
> <junfeng....@intel.com>; Jeroen de Borst <jeroe...@google.com>; Rushil
> Gupta <rush...@google.com>; Joshua Washington <joshw...@google.com>;
> Dongdong Liu <liudongdo...@huawei.com>; Yisen Zhuang
> <yisen.zhu...@huawei.com>; Maxime Coquelin <maxime.coque...@redhat.com>;
> Gaetan Rivet <gr...@u256.net>
> Subject: [PATCH v3 04/15] bus/pci: find PCI capability
> 
> Introduce two helpers so that drivers stop reinventing the wheel when it
> comes to finding capabilities in a device PCI configuration space.
> Use it in existing drivers.
> 
> Note:
> - base/ drivers code is left untouched, only some wrappers in cxgbe
>   are touched,
> - bnx2x maintained a per device cache of capabilities, this code has been
>   reworked to only cache the capabilities used in this driver,
> 
> Acked-by: Bruce Richardson <bruce.richard...@intel.com>
> Signed-off-by: David Marchand <david.march...@redhat.com>
> ---
> Changes since v2:
> - added rte_pci_find_next_capability for vendor capa used with virtio,
> 
> Changes since v1:
> - updated commitlog,
> - separated VFIO changes for using standard PCI helper in a separate
>   patch,
> - marked new experimental symbols with current version,
> - reordered defines in rte_pci.h,
> 
> ---
>  drivers/bus/pci/linux/pci_vfio.c   |  74 ++++--------------
>  drivers/bus/pci/pci_common.c       |  54 +++++++++++++
>  drivers/bus/pci/rte_bus_pci.h      |  53 +++++++++++++
>  drivers/bus/pci/version.map        |   5 ++
>  drivers/crypto/virtio/virtio_pci.c |  57 +++++---------
>  drivers/event/dlb2/pf/dlb2_main.c  |  42 +---------
>  drivers/net/bnx2x/bnx2x.c          |  41 +++++-----
>  drivers/net/cxgbe/base/adapter.h   |  28 +------
>  drivers/net/gve/gve_ethdev.c       |  46 ++---------
>  drivers/net/gve/gve_ethdev.h       |   4 -
>  drivers/net/hns3/hns3_ethdev_vf.c  |  79 +++----------------
>  drivers/net/virtio/virtio_pci.c    | 121 ++++++-----------------------
>  lib/pci/rte_pci.h                  |  12 +++
>  13 files changed, 223 insertions(+), 393 deletions(-)
> 

Reviewed-by: Chenbo Xia <chenbo....@intel.com> 

Reply via email to