diff options
| author | Ido Schimmel <[email protected]> | 2024-12-16 17:11:59 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-12-19 15:02:22 +0000 |
| commit | d26b8267d9e02b02c8d1aeb38d7730b5efab3b64 (patch) | |
| tree | 8d63ccd5778b703d4be8a28f072219f9dcc8fb89 /drivers/net/dsa/microchip | |
| parent | ipv6: Add flow label to route get requests (diff) | |
| download | kernel-d26b8267d9e02b02c8d1aeb38d7730b5efab3b64.tar.gz kernel-d26b8267d9e02b02c8d1aeb38d7730b5efab3b64.zip | |
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]>
Diffstat (limited to 'drivers/net/dsa/microchip')
0 files changed, 0 insertions, 0 deletions
