> -----Original Message-----
> From: David Marchand <[email protected]>
> Sent: Thursday, September 14, 2023 8:36 PM
> To: [email protected]
> Cc: [email protected]; [email protected]; Xia, Chenbo
> <[email protected]>; [email protected]; Richardson, Bruce
> <[email protected]>; Burakov, Anatoly <[email protected]>;
> Jay Zhou <[email protected]>; Sevincer, Abdullah
> <[email protected]>; Julien Aube <[email protected]>; Rahul
> Lakkireddy <[email protected]>; Guo, Junfeng
> <[email protected]>; Jeroen de Borst <[email protected]>; Rushil
> Gupta <[email protected]>; Joshua Washington <[email protected]>;
> Dongdong Liu <[email protected]>; Yisen Zhuang
> <[email protected]>; Maxime Coquelin <[email protected]>;
> Gaetan Rivet <[email protected]>
> 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 <[email protected]>
> Signed-off-by: David Marchand <[email protected]>
> ---
> 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 <[email protected]> 

Reply via email to