Skip to content

Commit d26b826

Browse files
idoschPaolo Abeni
authored andcommitted
netlink: specs: Add route flow label attribute
Add the new flow label attribute to the spec. Example: # ip link add name dummy1 up type dummy # ip -6 route add default table 254 dev dummy1 # ip -6 route add default table 10 dev dummy1 # ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_rule.yaml \ --do newrule \ --json '{"family": 10, "priority": 1, "flowlabel": 10, "flowlabel-mask": 255, "action": 1, "table": 10}' None $ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_route.yaml \ --do getroute \ --json '{"rtm-family": 10, "rta-flowlabel": 1}' --output-json \ | jq '.["rta-table"]' 254 $ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_route.yaml \ --do getroute \ --json '{"rtm-family": 10, "rta-flowlabel": 10}' --output-json \ | jq '.["rta-table"]' 10 Reviewed-by: Petr Machata <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Guillaume Nault <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent ba41380 commit d26b826

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/netlink/specs/rt_route.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ attribute-sets:
177177
-
178178
name: rta-nh-id
179179
type: u32
180+
-
181+
name: rta-flowlabel
182+
type: u32
183+
byte-order: big-endian
184+
display-hint: hex
180185
-
181186
name: rta-metrics
182187
attributes:
@@ -260,6 +265,7 @@ operations:
260265
- rta-dport
261266
- rta-mark
262267
- rta-uid
268+
- rta-flowlabel
263269
reply:
264270
value: 24
265271
attributes: &all-route-attrs
@@ -299,6 +305,7 @@ operations:
299305
- rta-sport
300306
- rta-dport
301307
- rta-nh-id
308+
- rta-flowlabel
302309
dump:
303310
request:
304311
value: 26

0 commit comments

Comments
 (0)