[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iKUV+brdTa0SZYi_pov8hKEL-9nXo-wKQsLP6xtY261UQ@mail.gmail.com>
Date: Mon, 23 May 2022 11:14:27 -0700
From: Eric Dumazet <edumazet@...gle.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Eric Dumazet <eric.dumazet@...il.com>,
"David S . Miller" <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>,
Dmitry Vyukov <dvyukov@...gle.com>
Subject: Re: [PATCH net-next 03/19] net: add dev_hold_track() and
dev_put_track() helpers
On Mon, May 23, 2022 at 11:03 AM Jakub Kicinski <kuba@...nel.org> wrote:
>
> 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?
Sure, we can do that, thanks.
Powered by blists - more mailing lists