[PATCH v7 1/4] bus/cdx: introduce AMD CDX bus
Thomas Monjalon
thomas at monjalon.net
Tue Jun 6 15:00:06 CEST 2023
06/06/2023 12:02, Nipun Gupta:
> +/* Forward declarations */
> +struct rte_cdx_device;
> +struct rte_cdx_driver;
> +struct rte_cdx_bus;
You should be very careful about what you export.
> +
> +#define CDX_BUS_DEVICES_PATH "/sys/bus/cdx/devices"
This define is not needed in the .h file.
> +
> +#define CDX_MAX_RESOURCE 4
This size looks required for rte_cdx_device,
but as an exported constant, it should be prefixed with RTE_
> +
> +/** Any CDX device identifier (vendor, device). */
> +#define RTE_CDX_ANY_ID (0xffff)
More information about the dev
mailing list