Re: [PATCH net-next v4 2/3] netdev-genl: Add an XSK attribute to queues
From: Joe Damato
Date: Fri Feb 07 2025 - 12:25:13 EST
On Fri, Feb 07, 2025 at 01:30:55PM +0000, Simon Horman wrote:
> On Fri, Feb 07, 2025 at 03:08:54AM +0000, Joe Damato wrote:
> > Expose a new per-queue nest attribute, xsk, which will be present for
> > queues that are being used for AF_XDP. If the queue is not being used for
> > AF_XDP, the nest will not be present.
> >
> > In the future, this attribute can be extended to include more data about
> > XSK as it is needed.
> >
> > Signed-off-by: Joe Damato <jdamato@xxxxxxxxxx>
> > Suggested-by: Jakub Kicinski <kuba@xxxxxxxxxx>
>
> ...
>
> > diff --git a/net/core/netdev-genl.c b/net/core/netdev-genl.c
> > index 0dcd4faefd8d..75ca111aa591 100644
> > --- a/net/core/netdev-genl.c
> > +++ b/net/core/netdev-genl.c
> > @@ -380,6 +380,7 @@ netdev_nl_queue_fill_one(struct sk_buff *rsp, struct net_device *netdev,
> > struct netdev_rx_queue *rxq;
> > struct netdev_queue *txq;
> > void *hdr;
> > + int ret;
> >
>
> Hi Joe,
>
> Perhaps this got left behind after some revisions elsewhere.
> But as it stands ret is unused in this function and should be removed.
>
> > hdr = genlmsg_iput(rsp, info);
> > if (!hdr)
>
> ...
Yes, you are right. I originally added it for the empty nest and
then didn't use it.
Sorry that I missed that and caused unnecessary churn due to my own
negligence.
Thanks for the review / catching it.