Re: [PATCH] netlink: specs: devlink: add missing attributes in devlink.yaml and re-generate the related code
From: swarup <hidden>
Date: 2023-11-14 10:44:36
Also in:
linux-kernel-mentees
From: swarup <hidden>
Date: 2023-11-14 10:44:36
Also in:
linux-kernel-mentees
eOn Tue, Nov 14, 2023 at 10:45:23AM +0100, Paolo Abeni wrote:
On Mon, 2023-11-13 at 12:09 +0530, Swarup Laxman Kotiaklapudi wrote:quoted
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
Hi Paolo, I have some emergency, hence will not have access to computer for next 2-3 days, once i am back, i will rebase and submit the patch again. Thanks, Swarup