diff options
| author | Ido Schimmel <[email protected]> | 2024-12-16 17:11:57 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-12-19 15:02:22 +0000 |
| commit | c72004aac60a9ffdf4bc29b1e7ff0798a7eab3c2 (patch) | |
| tree | 3665c02d7dcec47a99a2ca7af8de4ff972e2a318 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | net: fib_rules: Enable flow label selector usage (diff) | |
| download | kernel-c72004aac60a9ffdf4bc29b1e7ff0798a7eab3c2.tar.gz kernel-c72004aac60a9ffdf4bc29b1e7ff0798a7eab3c2.zip | |
netlink: specs: Add FIB rule flow label attributes
Add the new flow label attributes to the spec. Example:
# ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_rule.yaml \
--do newrule \
--json '{"family": 10, "flowlabel": 1, "flowlabel-mask": 1, "action": 1, "table": 1}'
None
$ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_rule.yaml \
--dump getrule --json '{"family": 10}' --output-json \
| jq '.[] | select(.flowlabel == "0x1")'
{
"table": 1,
"suppress-prefixlen": "0xffffffff",
"protocol": 0,
"priority": 32765,
"flowlabel": "0x1",
"flowlabel-mask": "0x1",
"family": 10,
"dst-len": 0,
"src-len": 0,
"tos": 0,
"action": "to-tbl",
"flags": 0
}
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/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
