Message ID | 20240129145807.8773-7-fw@strlen.de (mailing list archive) |
---|---|
State | Accepted |
Commit | d5f9142fb96d4386ff4d06745bbd8f8c73b3791b |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [nf-next,1/9] netfilter: uapi: Document NFT_TABLE_F_OWNER flag | expand |
diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c index a743db073887..98d7dbe3d787 100644 --- a/net/netfilter/ipvs/ip_vs_conn.c +++ b/net/netfilter/ipvs/ip_vs_conn.c @@ -1511,9 +1511,7 @@ int __init ip_vs_conn_init(void) return -ENOMEM; /* Allocate ip_vs_conn slab cache */ - ip_vs_conn_cachep = kmem_cache_create("ip_vs_conn", - sizeof(struct ip_vs_conn), 0, - SLAB_HWCACHE_ALIGN, NULL); + ip_vs_conn_cachep = KMEM_CACHE(ip_vs_conn, SLAB_HWCACHE_ALIGN); if (!ip_vs_conn_cachep) { kvfree(ip_vs_conn_tab); return -ENOMEM;