Re: [PATCH] netlink: specs: devlink: add missing attributes in devlink.yaml and re-generate the related code
From: Paolo Abeni <pabeni@redhat.com>
Date: 2023-11-14 09:45:32
Also in:
linux-kernel-mentees
From: Paolo Abeni <pabeni@redhat.com>
Date: 2023-11-14 09:45:32
Also in:
linux-kernel-mentees
On Mon, 2023-11-13 at 12:09 +0530, Swarup Laxman Kotiaklapudi wrote:
Add missing attributes in devlink.yaml.
Re-generate the related devlink-user.[ch] code.
trap-get command prints nested attributes.
Test result with trap-get command:
sudo ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/devlink.yaml
--do trap-get --json '{"bus-name": "netdevsim", "dev-name": "netdevsim1",
"trap-name": "ttl_value_is_too_small"}' --process-unknown
{'attr-stats': {'rx-bytes': 30931292, 'rx-dropped': 87,
'rx-packets': 217826},
'bus-name': 'netdevsim',
'dev-name': 'netdevsim1',
'trap-action': 'trap',
'trap-generic': True,
'trap-group-name': 'l3_exceptions',
'trap-metadata': {'metadata-type-in-port': True},
'trap-name': 'ttl_value_is_too_small',
'trap-type': 'exception'}
Signed-off-by: Swarup Laxman Kotiaklapudi <redacted>
Suggested-by: Jiri Pirko <jiri@resnulli.us>Please insert the target tree in the subj prefix (in this case 'net- next') Does not apply cleanly to net-next, please rebase it. Thanks, Paolo