Re: [PATCH net-next v4 2/3] netdev-genl: Add an XSK attribute to queues
From: Simon Horman
Date: Fri Feb 07 2025 - 08:31:09 EST
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)
...
--
pw-bot: changes-requested