diff options
author | Ido Schimmel <idosch@nvidia.com> | 2025-02-20 10:05:24 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-02-21 16:08:48 -0800 |
commit | 0df1328eaf04b2ccbd4da8478402c3b84df15cf3 (patch) | |
tree | 119407f7df2d82412d826c6c04c8e75cb84897dc /include/linux/fpga/fpga-mgr.h | |
parent | ea8af1affdc07bcf62fcb02c94cf8f7c4ad8d498 (diff) |
netlink: specs: Add FIB rule DSCP mask attribute
Add new DSCP mask attribute to the spec. Example:
# ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_rule.yaml \
--do newrule \
--json '{"family": 2, "dscp": 10, "dscp-mask": 63, "action": 1, "table": 1}'
None
$ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_rule.yaml \
--dump getrule --json '{"family": 2}' --output-json | jq '.[]'
[...]
{
"table": 1,
"suppress-prefixlen": "0xffffffff",
"protocol": 0,
"priority": 32765,
"dscp": 10,
"dscp-mask": "0x3f",
"family": 2,
"dst-len": 0,
"src-len": 0,
"tos": 0,
"action": "to-tbl",
"flags": 0
}
[...]
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Link: https://patch.msgid.link/20250220080525.831924-6-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions