Skip to content

Commit c72004a

Browse files
idoschPaolo Abeni
authored andcommitted
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 <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>
1 parent 4c25f3f commit c72004a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Documentation/netlink/specs/rt_rule.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,16 @@ attribute-sets:
172172
-
173173
name: dscp
174174
type: u8
175+
-
176+
name: flowlabel
177+
type: u32
178+
byte-order: big-endian
179+
display-hint: hex
180+
-
181+
name: flowlabel-mask
182+
type: u32
183+
byte-order: big-endian
184+
display-hint: hex
175185

176186
operations:
177187
enum-model: directional
@@ -203,6 +213,8 @@ operations:
203213
- sport-range
204214
- dport-range
205215
- dscp
216+
- flowlabel
217+
- flowlabel-mask
206218
-
207219
name: newrule-ntf
208220
doc: Notify a rule creation

0 commit comments

Comments
 (0)