Re: [PATCH net-next 4/6] netlink: add a proto specification for FOU
From: Nicolas Dichtel <hidden>
Date: 2022-09-29 09:06:11
Also in:
linux-doc
From: Nicolas Dichtel <hidden>
Date: 2022-09-29 09:06:11
Also in:
linux-doc
Le 29/09/2022 à 11:02, Nicolas Dichtel a écrit :
Le 29/09/2022 à 03:11, Jakub Kicinski a écrit :quoted
FOU has a reasonably modern Genetlink family. Add a spec. Signed-off-by: Jakub Kicinski <kuba@kernel.org> --- Documentation/netlink/specs/fou.yaml | 128 +++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 Documentation/netlink/specs/fou.yamldiff --git a/Documentation/netlink/specs/fou.yaml b/Documentation/netlink/specs/fou.yaml new file mode 100644 index 000000000000..266c386eedf3 --- /dev/null +++ b/Documentation/netlink/specs/fou.yaml@@ -0,0 +1,128 @@ +name: fou + +protocol: genetlink-legacy + +doc: | + Foo-over-UDP. + +c-family-name: fou-genl-name +c-version-name: fou-genl-version +max-by-define: true +kernel-policy: global + +definitions: + - + type: enum + name: encap_type + name-prefix: fou-encap- + enum-name: + entries: [ unspec, direct, gue ] + +attribute-sets: + - + name: fou + name-prefix: fou-attr- + attributes: + - + name: unspec + type: unusedThe first attribute should always be unspec/unused. Maybe it could be automatically generated?
I read the doc after the code :)