linux/Documentation
Hangbin Liu 782c1084b9 doc/netlink/specs: Add vlan attr in rt_link spec
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@gmail.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20240327123130.1322921-3-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-03-28 18:07:08 -07:00
..
2024-03-24 11:13:56 -07:00
2024-03-11 12:50:42 -07:00
2024-01-12 12:38:37 +01:00
2024-03-18 11:26:00 -07:00
2024-02-26 09:51:49 +01:00
2024-03-14 15:35:42 -07:00
2024-02-08 15:38:21 -07:00
2024-03-15 11:36:54 -07:00
2024-03-15 13:03:13 -07:00
2024-02-15 15:02:33 +01:00