mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mina Almasry <almasrymina@google.com>
To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Mina Almasry <almasrymina@google.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	 "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	 Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
	 John Fastabend <john.fastabend@gmail.com>,
	Sabrina Dubroca <sd@queasysnail.net>,
	 Ralf Lici <ralf@mandelbit.com>,
	Stanislav Fomichev <sdf@fomichev.me>,
	 Pavel Begunkov <asml.silence@gmail.com>,
	Bobby Eshleman <bobbyeshleman@meta.com>,
	 Willem de Bruijn <willemb@google.com>,
	Daniel Borkmann <daniel@iogearbox.net>
Subject: [PATCH net-next v1 0/2] netmem: rename non-pp ref helpers to *_inc/dec_ref()
Date: Wed, 21 Oct 2026 01:55:56 +0000	[thread overview]
Message-ID: <20261021015558.4124825-1-almasrymina@google.com> (raw)

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


             reply	other threads:[~2026-10-21  1:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-21  1:55 Mina Almasry [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261021015558.4124825-1-almasrymina@google.com \
    --to=almasrymina@google.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=asml.silence@gmail.com \
    --cc=bobbyeshleman@meta.com \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=john.fastabend@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=ralf@mandelbit.com \
    --cc=sd@queasysnail.net \
    --cc=sdf@fomichev.me \
    --cc=willemb@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®