mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 17:22:07 +00:00
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 <petrm@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Guillaume Nault <gnault@redhat.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
ba4138032a
commit
d26b8267d9
@ -177,6 +177,11 @@ attribute-sets:
|
|||||||
-
|
-
|
||||||
name: rta-nh-id
|
name: rta-nh-id
|
||||||
type: u32
|
type: u32
|
||||||
|
-
|
||||||
|
name: rta-flowlabel
|
||||||
|
type: u32
|
||||||
|
byte-order: big-endian
|
||||||
|
display-hint: hex
|
||||||
-
|
-
|
||||||
name: rta-metrics
|
name: rta-metrics
|
||||||
attributes:
|
attributes:
|
||||||
@ -260,6 +265,7 @@ operations:
|
|||||||
- rta-dport
|
- rta-dport
|
||||||
- rta-mark
|
- rta-mark
|
||||||
- rta-uid
|
- rta-uid
|
||||||
|
- rta-flowlabel
|
||||||
reply:
|
reply:
|
||||||
value: 24
|
value: 24
|
||||||
attributes: &all-route-attrs
|
attributes: &all-route-attrs
|
||||||
@ -299,6 +305,7 @@ operations:
|
|||||||
- rta-sport
|
- rta-sport
|
||||||
- rta-dport
|
- rta-dport
|
||||||
- rta-nh-id
|
- rta-nh-id
|
||||||
|
- rta-flowlabel
|
||||||
dump:
|
dump:
|
||||||
request:
|
request:
|
||||||
value: 26
|
value: 26
|
||||||
|
Loading…
Reference in New Issue
Block a user