netkit: Add add netkit scrub support to rt_link.yaml
Add netkit scrub attribute support to the rt_link.yaml spec file.
Example:
# ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_link.yaml \
--do getlink --json '{"ifname": "nk0"}' --output-json | jq
[...]
"linkinfo": {
"kind": "netkit",
"data": {
"primary": 0,
"policy": "forward",
"mode": "l3",
"scrub": "default",
"peer-policy": "forward",
"peer-scrub": "default"
}
},
[...]
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Nikolay Aleksandrov <razor@blackwall.org>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://lore.kernel.org/r/20241004101335.117711-3-daniel@iogearbox.net
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
This commit is contained in:
committed by
Martin KaFai Lau
parent
0ebe224ffc
commit
7b9b713b8e
@@ -920,6 +920,13 @@ definitions:
|
||||
- name: l2
|
||||
- name: l3
|
||||
|
||||
-
|
||||
name: netkit-scrub
|
||||
type: enum
|
||||
entries:
|
||||
- name: none
|
||||
- name: default
|
||||
|
||||
attribute-sets:
|
||||
-
|
||||
name: link-attrs
|
||||
@@ -2147,6 +2154,14 @@ attribute-sets:
|
||||
name: mode
|
||||
type: u32
|
||||
enum: netkit-mode
|
||||
-
|
||||
name: scrub
|
||||
type: u32
|
||||
enum: netkit-scrub
|
||||
-
|
||||
name: peer-scrub
|
||||
type: u32
|
||||
enum: netkit-scrub
|
||||
|
||||
sub-messages:
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user