On Thu, 4 Nov 2021 02:01:28 +0000 <eagost...@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.