[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZjPGCrqDQHW-n1Gi@nanopsycho.orion>
Date: Thu, 2 May 2024 18:57:46 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, donald.hunter@...il.com,
alessandromarcolini99@...il.com
Subject: Re: [PATCH net-next] tools: ynl: add --list-ops and --list-msgs to
CLI
Thu, May 02, 2024 at 06:40:43PM CEST, kuba@...nel.org wrote:
>I often forget the exact naming of ops and have to look at
>the spec to find it. Add support for listing the operations:
>
> $ ./cli.py --spec .../netdev.yaml --list-ops
> dev-get [ do, dump ]
> page-pool-get [ do, dump ]
> page-pool-stats-get [ do, dump ]
> queue-get [ do, dump ]
> napi-get [ do, dump ]
> qstats-get [ dump ]
>
>For completeness also support listing all ops (including
>notifications:
>
> # ./cli.py --spec .../netdev.yaml --list-msgs
> dev-get [ dump, do ]
> dev-add-ntf [ notify ]
> dev-del-ntf [ notify ]
> dev-change-ntf [ notify ]
> page-pool-get [ dump, do ]
> page-pool-add-ntf [ notify ]
> page-pool-del-ntf [ notify ]
> page-pool-change-ntf [ notify ]
> page-pool-stats-get [ dump, do ]
> queue-get [ dump, do ]
> napi-get [ dump, do ]
> qstats-get [ dump ]
>
>Use double space after the name for slightly easier to read
>output.
>
>Signed-off-by: Jakub Kicinski <kuba@...nel.org>
Had that on my todo list :) Thanks!
Reviewed-by: Jiri Pirko <jiri@...dia.com>
Powered by blists - more mailing lists