[dpdk-dev] [PATCH 1/2] pci: rename catch-all ID

David Marchand david.marchand at redhat.com
Thu Apr 1 09:58:02 CEST 2021


On Thu, Apr 1, 2021 at 12:34 AM Thomas Monjalon <thomas at monjalon.net> wrote:
> @@ -95,7 +95,9 @@ struct rte_pci_addr {
>  };
>
>  /** Any PCI device identifier (vendor, device, ...) */
> -#define PCI_ANY_ID (0xffff)
> +#define RTE_PCI_ANY_ID (0xffff)
> +/** @deprecated Replaced with RTE_PCI_ANY_ID */
> +#define PCI_ANY_ID RTE_PCI_ANY_ID

We may also tag it for applications to notice the deprecation:

#define PCI_ANY_ID RTE_DEPRECATED(PCI_ANY_ID) RTE_PCI_ANY_ID


>  #define RTE_CLASS_ANY_ID (0xffffff)
>
>  /**


-- 
David Marchand



More information about the dev mailing list