sctp: Simplify the allocation of slab caches
authorKunwu Chan <chentao@kylinos.cn>
Wed, 31 Jan 2024 08:45:49 +0000 (16:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Feb 2024 12:17:32 +0000 (12:17 +0000)
commitfa33b35f86b8010938e474643ef4f88b62a9b262
tree0a30efdeaf85f563baba0769e9f2931b9448330f
parent49d703c8f4514e5ab127be387102b478fdae40c2
sctp: Simplify the allocation of slab caches

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>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Acked-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/protocol.c