[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b2e9c835-a634-43a0-8fd1-f2b946164c92@intel.com>
Date: Thu, 24 Apr 2025 08:51:23 -0700
From: Jacob Keller <jacob.e.keller@...el.com>
To: Jakub Kicinski <kuba@...nel.org>, <davem@...emloft.net>
CC: <netdev@...r.kernel.org>, <edumazet@...gle.com>, <pabeni@...hat.com>,
<andrew+netdev@...n.ch>, <horms@...nel.org>, <donald.hunter@...il.com>,
<sdf@...ichev.me>
Subject: Re: [PATCH net-next 05/12] tools: ynl-gen: support using dump types
for ntf
On 4/23/2025 7:12 PM, Jakub Kicinski wrote:
> Classic Netlink has GET callbacks with no doit support, just dumps.
> Support using their responses in notifications. If notification points
> at a type which only has a dump - use the dump's type.
>
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
> ---
Reviewed-by: Jacob Keller <jacob.e.keller@...el.com>
> tools/net/ynl/pyynl/ynl_gen_c.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/net/ynl/pyynl/ynl_gen_c.py b/tools/net/ynl/pyynl/ynl_gen_c.py
> index 35a7e3ba0725..2999a2953595 100755
> --- a/tools/net/ynl/pyynl/ynl_gen_c.py
> +++ b/tools/net/ynl/pyynl/ynl_gen_c.py
> @@ -1283,7 +1283,7 @@ from lib import SpecFamily, SpecAttrSet, SpecAttr, SpecOperation, SpecEnumSet, S
>
> self.struct = dict()
> if op_mode == 'notify':
> - op_mode = 'do'
> + op_mode = 'do' if 'do' in op else 'dump'
> for op_dir in ['request', 'reply']:
> if op:
> type_list = []
Powered by blists - more mailing lists