netfilter: expect: Simplify the allocation of slab caches in nf_conntrack_expect_init
authorKunwu Chan <chentao@kylinos.cn>
Wed, 24 Jan 2024 08:15:38 +0000 (16:15 +0800)
committerFlorian Westphal <fw@strlen.de>
Wed, 21 Feb 2024 10:57:11 +0000 (11:57 +0100)
commitaa23cfe6ab500dbbfa630602b403f433522daf9f
tree8060a90dffcd042c6661a7cc7e8898798944dbba
parentb0117d136bb9e4a1facb7ce354e0580dde876f6b
netfilter: expect: Simplify the allocation of slab caches in nf_conntrack_expect_init

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: Florian Westphal <fw@strlen.de>
net/netfilter/nf_conntrack_expect.c