[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220523110315.6f0637ed@kernel.org>
Date: Mon, 23 May 2022 11:03:15 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: "David S . Miller" <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>,
Dmitry Vyukov <dvyukov@...gle.com>,
Eric Dumazet <edumazet@...gle.com>
Subject: Re: [PATCH net-next 03/19] net: add dev_hold_track() and
dev_put_track() helpers
On Wed, 1 Dec 2021 19:21:23 -0800 Eric Dumazet wrote:
> +static inline void dev_hold_track(struct net_device *dev,
> + netdevice_tracker *tracker, gfp_t gfp)
> +{
> + if (dev) {
> + dev_hold(dev);
> +#ifdef CONFIG_NET_DEV_REFCNT_TRACKER
> + ref_tracker_alloc(&dev->refcnt_tracker, tracker, gfp);
> +#endif
> + }
> +}
> +
> +static inline void dev_put_track(struct net_device *dev,
> + netdevice_tracker *tracker)
> +{
> + if (dev) {
> +#ifdef CONFIG_NET_DEV_REFCNT_TRACKER
> + ref_tracker_free(&dev->refcnt_tracker, tracker);
> +#endif
> + dev_put(dev);
> + }
> +}
Hi Eric, how bad would it be if we renamed dev_hold/put_track() to
netdev_hold/put()? IIUC we use the dev_ prefix for "historic reasons"
could this be an opportunity to stop doing that?
Powered by blists - more mailing lists