Re: [PATCH net-next] net: ipv4: Simplify the allocation of slab caches in inet_initpeers
From: Jiri Pirko <jiri@resnulli.us>
Date: 2024-01-31 09:27:03
Also in:
lkml
From: Jiri Pirko <jiri@resnulli.us>
Date: 2024-01-31 09:27:03
Also in:
lkml
Tue, Jan 30, 2024 at 10:22:55AM CET, chentao@kylinos.cn wrote:
commit 0a31bd5f2bbb ("KMEM_CACHE(): simplify slab cache creation")
introduces a new macro.
Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
to simplify the creation of SLAB caches.
Signed-off-by: Kunwu Chan <redacted>Reviewed-by: Jiri Pirko <redacted>