[dpdk-dev] [PATCH v2 1/1] gpu/cuda: introduce CUDA driver

Stephen Hemminger stephen at networkplumber.org
Wed Nov 3 19:15:18 CET 2021


On Thu, 4 Nov 2021 02:01:28 +0000
<eagostini at nvidia.com> wrote:

> +
> +#define CUDA_MAX_ALLOCATION_NUM 512
> +
> +#define GPU_PAGE_SHIFT 16
> +#define GPU_PAGE_SIZE (1UL << GPU_PAGE_SHIFT)
> +
> +RTE_LOG_REGISTER_DEFAULT(gpu_logtype, NOTICE);

Use static before this RTE_LOG_REGISTER_DEFAULT.
You don't need to export gpu_log_type as global do you?

> +struct mem_entry *mem_alloc_list_head = NULL;
> +struct mem_entry *mem_alloc_list_tail = NULL;
> +uint32_t mem_alloc_list_last_elem = 0;

These should be static since specific to this driver.


More information about the dev mailing list