[PATCH v2 05/19] net/xsc: add ioctl command interface
WanRenyong
wanry at yunsilicon.com
Thu Sep 12 06:07:15 CEST 2024
On 2024/9/11 11:48, Stephen Hemminger wrote:
> On Wed, 11 Sep 2024 10:07:26 +0800
> "WanRenyong" <wanry at 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
More information about the dev
mailing list