tools: ynl: Add sub-message and multi-attr encoding support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | tools: ynl: correct typo and docstringtools/ | +3 | 1 reply | |
| 2/3 | doc: netlink: specs: tc: add multi-attr to tc-taprio-sched-entryDocumentation/ | +2 | 1 reply | |
| 3/3 | tools: ynl: add encoding support for 'sub-message' to ynltools/ | +48 | 5 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Donald Hunter |
|---|---|
| 1/3 | R-b |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 0/3] tools: ynl: Add sub-message and multi-attr encoding support
This patchset adds the encoding support for sub-message attributes and multi-attr objects.
Patch 1 corrects a typo and the docstring for SpecSubMessageFormat Patch 2 adds the multi-attr attribute to the entry object for taprio Patch 3 updates the _add_attr method to support sub-message encoding
It is now possible to add a taprio qdisc using ynl:
# /tools/net/ynl/cli.py --spec Documentation/netlink/specs/tc.yaml --do newqdisc --create --json '{"family":1, "ifindex":4, "handle":65536, "parent":4294967295, "info":0, "kind":"taprio", "stab":{"base":"000000000000001f00000000000000000000000000000000"}, "options":{"priomap":"03010101010101010101010101010101010001000100020000000000000000000000000000000000000000000000000000000100020003000000000000000000000000000000000000000000000000000000", "sched-clockid":11, "sched-entry-list":[{"entry":{"index":0, "cmd":0, "gate-mask":1, "interval":300000}}, {"entry":{"index":1, "cmd":0, "gate-mask":2, "interval":300000}}, {"entry":{"index":2, "cmd":0, "gate-mask":4, "interval":400000}}], "sched-base-time":1528743495910289987, "flags": 1}}'Alessandro Marcolini (3):
tools: ynl: correct typo and docstring
doc: netlink: specs: tc: add multi-attr to tc-taprio-sched-entry
tools: ynl: add encoding support for 'sub-message' to ynl
Documentation/netlink/specs/tc.yaml | 3 +- tools/net/ynl/lib/nlspec.py | 7 ++-- tools/net/ynl/lib/ynl.py | 54 +++++++++++++++++++++++++---- 3 files changed, 53 insertions(+), 11 deletions(-)
Signature · 1 line
2.43.0