On 2024/9/11 11:48, Stephen Hemminger wrote:
> On Wed, 11 Sep 2024 10:07:26 +0800
> "WanRenyong" <wa...@yunsilicon.com> wrote:
>
>> +    hdr = rte_zmalloc(NULL, alloc_len, RTE_CACHE_LINE_SIZE);
>> +    if (hdr == NULL) {
>> +            PMD_DRV_LOG(ERR, "Failed to allocate xsc ioctl cmd memory");
>> +            return -ENOMEM;
>> +    }
>> +
> This is local to function, use malloc() not rte_zmalloc().
> It doesn't need to come from hugepages.

Hello, Stephen,

Thanks for you review,  will fix it in next version.

-- 
Thanks,
WanRenyong

Reply via email to