[PATCH] fib: fix name of main TRIE instance memory region
Andrew Rybchenko
andrew.rybchenko at oktetlabs.ru
Mon Mar 16 17:06:08 CET 2026
On 3/16/26 6:30 PM, Stephen Hemminger wrote:
> On Mon, 16 Mar 2026 16:05:18 +0300
> Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru> wrote:
>
>> mem_name was built, but not used when memory is allocated.
>>
>> Fixes: c3e12e0f0354 ("fib: add dataplane algorithm for IPv6")
>> Signed-off-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
>> ---
>
> Ok but the name argument is only used for tracing.
> It can just be NULL
Yes, I know. IMHO the consistency is the main issue here.
It is simply wrong to prepare mem_name and do not use it.
Obviously the second option is use delete above snprintf(),
but I try to follow the author idea as I understand it.
More information about the dev
mailing list