[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m2wmpmjt0q.fsf@gmail.com>
Date: Thu, 28 Mar 2024 15:05:57 +0000
From: Donald Hunter <donald.hunter@...il.com>
To: Hangbin Liu <liuhangbin@...il.com>
Cc: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>, Eric
Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo
Abeni <pabeni@...hat.com>, Jiri Pirko <jiri@...nulli.us>, Jacob Keller
<jacob.e.keller@...el.com>, Stanislav Fomichev <sdf@...gle.com>
Subject: Re: [PATCHv3 net-next 2/2] doc/netlink/specs: Add vlan attr in
rt_link spec
Hangbin Liu <liuhangbin@...il.com> writes:
> With command:
> # ./tools/net/ynl/cli.py \
> --spec Documentation/netlink/specs/rt_link.yaml \
> --do getlink --json '{"ifname": "eno1.2"}' --output-json | \
> jq -C '.linkinfo'
>
> Before:
> Exception: No message format for 'vlan' in sub-message spec 'linkinfo-data-msg'
>
> After:
> {
> "kind": "vlan",
> "data": {
> "protocol": "8021q",
> "id": 2,
> "flag": {
> "flags": [
> "reorder-hdr"
> ],
> "mask": "0xffffffff"
> },
> "egress-qos": {
> "mapping": [
> {
> "from": 1,
> "to": 2
> },
> {
> "from": 4,
> "to": 4
> }
> ]
> }
> }
> }
>
> Signed-off-by: Hangbin Liu <liuhangbin@...il.com>
Reviewed-by: Donald Hunter <donald.hunter@...il.com>
Powered by blists - more mailing lists