Message ID | 068dee6ab2c16a539b67ea04751aac8d096da95a.1705950652.git.alessandromarcolini99@gmail.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | tools: ynl: Add sub-message and multi-attr encoding support | expand |
Alessandro Marcolini <alessandromarcolini99@gmail.com> writes: > Add multi-attr attribute to tc-taprio-sched-entry to specify multiple > entries. > Also remove the TODO that will be fixed by the next commit. > > Signed-off-by: Alessandro Marcolini <alessandromarcolini99@gmail.com> > --- > Documentation/netlink/specs/tc.yaml | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Documentation/netlink/specs/tc.yaml b/Documentation/netlink/specs/tc.yaml > index 4346fa402fc9..5e520d3125b6 100644 > --- a/Documentation/netlink/specs/tc.yaml > +++ b/Documentation/netlink/specs/tc.yaml > @@ -1573,6 +1573,7 @@ attribute-sets: > name: entry > type: nest > nested-attributes: tc-taprio-sched-entry > + multi-attr: true Good catch for the mulit-attr. I don't have this in my tc patch. > - > name: tc-taprio-sched-entry > attributes: > @@ -1667,7 +1668,7 @@ attribute-sets: > type: binary > - > name: app > - type: binary # TODO sub-message needs 2+ level deep lookup > + type: binary > sub-message: tca-stats-app-msg > selector: kind > - I have this in my tc patch. It should be 'type: sub-message'. https://lore.kernel.org/netdev/20240123160538.172-13-donald.hunter@gmail.com/T/#u
diff --git a/Documentation/netlink/specs/tc.yaml b/Documentation/netlink/specs/tc.yaml index 4346fa402fc9..5e520d3125b6 100644 --- a/Documentation/netlink/specs/tc.yaml +++ b/Documentation/netlink/specs/tc.yaml @@ -1573,6 +1573,7 @@ attribute-sets: name: entry type: nest nested-attributes: tc-taprio-sched-entry + multi-attr: true - name: tc-taprio-sched-entry attributes: @@ -1667,7 +1668,7 @@ attribute-sets: type: binary - name: app - type: binary # TODO sub-message needs 2+ level deep lookup + type: binary sub-message: tca-stats-app-msg selector: kind -
Add multi-attr attribute to tc-taprio-sched-entry to specify multiple entries. Also remove the TODO that will be fixed by the next commit. Signed-off-by: Alessandro Marcolini <alessandromarcolini99@gmail.com> --- Documentation/netlink/specs/tc.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)