ipv6: Simplify the allocation of slab caches
authorKunwu Chan <chentao@kylinos.cn>
Tue, 20 Feb 2024 07:36:46 +0000 (15:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Feb 2024 11:28:58 +0000 (11:28 +0000)
commit072f88ca5ca4ef8655721341195028844165b2f1
tree71d27f016414b120ab816606a33b382c9253ab6f
parent7eb2bc2481a1162ceacdbacd2089736558a08f8d
ipv6: Simplify the allocation of slab caches

Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
to simplify the creation of SLAB caches.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c