xfrm: Simplify the allocation of slab caches in xfrm_policy_init
authorKunwu Chan <chentao@kylinos.cn>
Tue, 30 Jan 2024 08:14:11 +0000 (16:14 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 9 Feb 2024 05:48:04 +0000 (06:48 +0100)
commit1476de6d2b578673e20fb4cf654ff61cf2782873
tree8f33ad8763c32b9940493fc5eab342f1a9615fc4
parentab1e1a38de240057ed108075abd1309c02e2a2a4
xfrm: Simplify the allocation of slab caches in xfrm_policy_init

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 <chentao@kylinos.cn>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c