[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230317212354.0390ced0@kernel.org>
Date: Fri, 17 Mar 2023 21:23:54 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Stanislav Fomichev <sdf@...gle.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, edumazet@...gle.com,
pabeni@...hat.com
Subject: Re: [PATCH net-next 4/4] ynl: ethtool testing tool
On Fri, 17 Mar 2023 17:23:40 -0700 Stanislav Fomichev wrote:
> diff --git a/tools/net/ynl/lib/ynl.py b/tools/net/ynl/lib/ynl.py
> index 6c1a59cef957..2562e2cd4768 100644
> --- a/tools/net/ynl/lib/ynl.py
> +++ b/tools/net/ynl/lib/ynl.py
> @@ -477,6 +477,19 @@ genl_family_name_to_id = None
>
> self.handle_ntf(nl_msg, gm)
>
> + def operation_do_attributes(self, name):
> + """
> + For a given operation name, find and return a supported
> + set of attributes (as a dict).
> + """
> + op = self.find_operation(name)
> + if not op:
> + return None
> +
> + attrs = op['do']['request']['attributes'].copy()
> + attrs.remove('header') # not user-provided
'header' is ethtool specific tho, right?
> + return attrs
Powered by blists - more mailing lists