[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230712141917.4fcabaa0@kernel.org>
Date: Wed, 12 Jul 2023 14:19:17 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: "Nambiar, Amritha" <amritha.nambiar@...el.com>
Cc: <netdev@...r.kernel.org>, <davem@...emloft.net>,
<sridhar.samudrala@...el.com>
Subject: Re: [net-next/RFC PATCH v1 4/4] netdev-genl: Add support for
exposing napi info from netdev
On Wed, 12 Jul 2023 13:10:45 -0700 Nambiar, Amritha wrote:
> So, I think we could have two new commands for napi data. Would this be
> acceptable, a 'napi-queue-get' command for napi-queue specific
> information (set of TX and RX queues, IRQ number etc.), and another
> 'napi-info-get' for other information, such as PID for the napi thread,
> CPU etc.
>
> Example:
> $ ./cli.py --spec netdev.yaml --do napi-queue-get --json='{"ifindex":
> 12}'
>
> [{'napi-info': [{'napi-id': 600, 'rx-queues': [7], 'tx-queues': [7],
> 'irq': 298},
I think the commands make sense. You should echo back the ifindex, tho,
it threw me off initially that there's only on attribute ('napi-info')
in the reply, in which case the nest would have been pointless..
Powered by blists - more mailing lists