Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next v1 0/2] netmem: rename non-pp ref helpers to *_inc/dec_ref()
@ 2026-10-21  1:55 Mina Almasry
  2026-10-21  1:55 ` [PATCH net-next v1 1/2] netmem: rename get/put_net_iov() to net_iov_inc/dec_ref() Mina Almasry
  2026-10-21  1:55 ` [PATCH net-next v1 2/2] netmem: rename get/put_netmem() to netmem_inc/dec_ref() Mina Almasry
  0 siblings, 2 replies; 3+ messages in thread
From: Mina Almasry @ 2026-10-21  1:55 UTC (permalink / raw)
  To: netdev, linux-kernel
  Cc: Mina Almasry, Andrew Lunn, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Simon Horman, John Fastabend,
	Sabrina Dubroca, Ralf Lici, Stanislav Fomichev, Pavel Begunkov,
	Bobby Eshleman, Willem de Bruijn, Daniel Borkmann

Rename the net_iov and netmem non-page_pool reference helpers from
get/put_net_iov(), net_devmem_get/put_net_iov(), and get/put_netmem() to
net_iov_inc/dec_ref(), net_devmem_net_iov_inc/dec_ref(), and
netmem_inc/dec_ref() to follow the object_action() naming convention.

Use *_inc_ref() and *_dec_ref() rather than netmem_ref() because
netmem_ref is already the typedef for the generic network memory handle.

Mina Almasry (2):
  netmem: rename get/put_net_iov() to net_iov_inc/dec_ref()
  netmem: rename get/put_netmem() to netmem_inc/dec_ref()

 drivers/net/veth.c            |  2 +-
 include/linux/skbuff_ref.h    |  8 ++++----
 include/net/netmem.h          | 24 ++++++++++++------------
 net/core/datagram.c           |  2 +-
 net/core/devmem.c             |  4 ++--
 net/core/devmem.h             | 10 +++++-----
 net/core/net_test.c           | 24 ++++++++++++------------
 net/core/skbuff.c             | 20 ++++++++++----------
 net/tls/tls_device.c          |  2 +-
 net/tls/tls_device_fallback.c |  2 +-
 10 files changed, 49 insertions(+), 49 deletions(-)


base-commit: 3c9d71edf50ad153e892ef887e54496286774544
-- 
2.56.0.212.g129ede20d9-goog


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

end of thread, other threads:[~2026-10-21  1:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-21  1:55 [PATCH net-next v1 0/2] netmem: rename non-pp ref helpers to *_inc/dec_ref() Mina Almasry
2026-10-21  1:55 ` [PATCH net-next v1 1/2] netmem: rename get/put_net_iov() to net_iov_inc/dec_ref() Mina Almasry
2026-10-21  1:55 ` [PATCH net-next v1 2/2] netmem: rename get/put_netmem() to netmem_inc/dec_ref() Mina Almasry

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