public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/6] Use KMEM_CACHE instead of kmem_cache_create
@ 2024-02-05  7:20 Kunwu Chan
  2024-02-05  7:20 ` [PATCH net-next 1/6] net: kcm: Simplify the allocation of slab caches Kunwu Chan
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Kunwu Chan @ 2024-02-05  7:20 UTC (permalink / raw)
  To: davem, dsahern, edumazet, kuba, pabeni, jiri
  Cc: netdev, linux-kernel, Kunwu Chan

As Jiri Pirko suggests, 
I'm using a patchset to cleanup the same issues in the 'net' module.
Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
to simplify the creation of SLAB caches.

Some cache names are changed to be the same as struct names. 
This change is recorded in the changelog for easy reference.
It's harmless cause it's used in /proc/slabinfo to identify this cache.

Kunwu Chan (6):
  net: kcm: Simplify the allocation of slab caches
  ip6mr: Simplify the allocation of slab caches in ip6_mr_init
  ipmr: Simplify the allocation of slab caches
  ipv4: Simplify the allocation of slab caches in ip_rt_init
  tcp: Simplify the allocation of slab caches
  ipv6: Simplify the allocation of slab caches

 net/ipv4/ipmr.c    |  5 +----
 net/ipv4/route.c   |  5 ++---
 net/ipv4/tcp.c     | 14 ++++----------
 net/ipv6/ip6_fib.c |  6 ++----
 net/ipv6/ip6mr.c   |  5 +----
 net/kcm/kcmsock.c  |  8 ++------
 6 files changed, 12 insertions(+), 31 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-02-19  9:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-05  7:20 [PATCH net-next 0/6] Use KMEM_CACHE instead of kmem_cache_create Kunwu Chan
2024-02-05  7:20 ` [PATCH net-next 1/6] net: kcm: Simplify the allocation of slab caches Kunwu Chan
2024-02-05  7:20 ` [PATCH net-next 2/6] ip6mr: Simplify the allocation of slab caches in ip6_mr_init Kunwu Chan
2024-02-05  7:20 ` [PATCH net-next 3/6] ipmr: Simplify the allocation of slab caches Kunwu Chan
2024-02-05  7:20 ` [PATCH net-next 4/6] ipv4: Simplify the allocation of slab caches in ip_rt_init Kunwu Chan
2024-02-05  7:20 ` [PATCH net-next 5/6] tcp: Simplify the allocation of slab caches Kunwu Chan
2024-02-05 12:29   ` Eric Dumazet
2024-02-19  9:09     ` Kunwu Chan
2024-02-05  7:20 ` [PATCH net-next 6/6] ipv6: " Kunwu Chan
2024-02-05  7:37 ` [PATCH net-next 0/6] Use KMEM_CACHE instead of kmem_cache_create Michal Swiatkowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox