[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250213-accomplished-chamois-of-vigor-b324af@leitao>
Date: Thu, 13 Feb 2025 04:29:17 -0800
From: Breno Leitao <leitao@...ian.org>
To: Kuniyuki Iwashima <kuniyu@...zon.com>
Cc: andrew+netdev@...n.ch, davem@...emloft.net, dsahern@...nel.org,
edumazet@...gle.com, horms@...nel.org, kernel-team@...a.com,
kuba@...nel.org, kuniyu@...zon.co.jp, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, pabeni@...hat.com, ushankar@...estorage.com
Subject: Re: [PATCH net-next v3 2/3] net: Add dev_getbyhwaddr_rtnl() helper
On Thu, Feb 13, 2025 at 07:52:17PM +0900, Kuniyuki Iwashima wrote:
> From: Breno Leitao <leitao@...ian.org>
> Date: Thu, 13 Feb 2025 02:29:38 -0800
> > Hello Kuniyuki,
> >
> > On Thu, Feb 13, 2025 at 04:31:29PM +0900, Kuniyuki Iwashima wrote:
> > > > Subject: [PATCH net-next v3 2/3] net: Add dev_getbyhwaddr_rtnl() helper
> > >
> > > s/_rtnl//
> >
> > Ack!
> >
> > > looks like Uday's comment was missed due to the lore issue.
> >
> > hmm, I haven't seen Uday's comment. Didn't it reach lore?
>
> I saw the reply and my another one on lore but somehow they
> were removed :)
>
>
> >
> > > From: Breno Leitao <leitao@...ian.org>
> > > Date: Wed, 12 Feb 2025 09:47:25 -0800
> > > > +/**
> > > > + * dev_getbyhwaddr - find a device by its hardware address
> > >
> > > While at it, could you replace '\t' after '*' to a single '\s'
> > > for all kernel-doc comment lines below ?
> > >
> > >
> > > > + * @net: the applicable net namespace
> > > > + * @type: media type of device
> > > > + * @ha: hardware address
> > > > + *
> > > > + * Similar to dev_getbyhwaddr_rcu(), but the owner needs to hold
> > > > + * rtnl_lock.
> > >
> > > Otherwise the text here is mis-aligned.
> >
> > Sorry, what is misaligned specifically? I generated the documentation,
> > and I can't see it misaligned.
> >
> > This is what I see when generating the document (full log at
> > https://pastebin.mozilla.org/YkotEoHh#L250,271)
> >
> >
> > dev_getbyhwaddr_rcu(9) Kernel Hacker's Manual dev_getbyhwaddr_rcu(9)
> >
> > NAME
> > dev_getbyhwaddr_rcu - find a device by its hardware address
> >
> > SYNOPSIS
> > struct net_device * dev_getbyhwaddr_rcu (struct net *net , unsigned short type , const char *ha );
> >
> > ARGUMENTS
> > net the applicable net namespace
> >
> > type media type of device
> >
> > ha hardware address
> >
> > Search for an interface by MAC address. Returns NULL if the device is not found or a pointer to the device. The caller must hold RCU. The returned device has
> ^^^^^^
> This scentence starts from a weird position when we use '\t' after '*'.
> You will see it start from the head if '\s' follows '*'.
>
Makes sense. All of these functions on that file is misaligned.
Having it aligned will add the section under "DESCRIPTION" manpage
section.
Powered by blists - more mailing lists