From 2bd30b8dc75b823dd7bbef9d7bc68e1fd7ecee5c Mon Sep 17 00:00:00 2001 From: Sang-Heon Jeon Date: Mon, 24 Aug 2026 01:18:14 +0900 Subject: coccinelle: alloc_cast: drop removed allocators - pci_alloc_consistent() and pci_zalloc_consistent() were removed by commit 7968778914e5 ("PCI: Remove the deprecated "pci-dma-compat.h" API") - kmem_alloc() was removed by commit f078d4ea8276 ("xfs: convert kmem_alloc() to kmalloc()") - kmem_zalloc() was removed by commit 10634530f7ba ("xfs: convert kmem_zalloc() to kzalloc()") - kmem_zone_alloc() and kmem_zone_zalloc() were removed by commit bae633a4a283 ("xfs: remove xfs_zone_{alloc,zalloc} helpers") So drop them from the rules. No functional change. Signed-off-by: Sang-Heon Jeon Signed-off-by: Julia Lawall --- Documentation/netlink/specs/fou.yaml | 134 +++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 Documentation/netlink/specs/fou.yaml (limited to 'Documentation/netlink/specs/fou.yaml') diff --git a/Documentation/netlink/specs/fou.yaml b/Documentation/netlink/specs/fou.yaml new file mode 100644 index 000000000..331f1b342 --- /dev/null +++ b/Documentation/netlink/specs/fou.yaml @@ -0,0 +1,134 @@ +# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) +--- +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: unused + value: 0 + - + name: port + type: u16 + byte-order: big-endian + - + name: af + type: u8 + - + name: ipproto + type: u8 + checks: + min: 1 + - + name: type + type: u8 + - + name: remcsum-nopartial + type: flag + - + name: local-v4 + type: u32 + - + name: local-v6 + type: binary + checks: + exact-len: 16 + - + name: peer-v4 + type: u32 + - + name: peer-v6 + type: binary + checks: + exact-len: 16 + - + name: peer-port + type: u16 + byte-order: big-endian + - + name: ifindex + type: s32 + +operations: + list: + - + name: unspec + doc: unused + value: 0 + + - + name: add + doc: Add port. + attribute-set: fou + + dont-validate: [strict, dump] + flags: [admin-perm] + + do: + request: &all_attrs + attributes: + - port + - ipproto + - type + - remcsum-nopartial + - local-v4 + - peer-v4 + - local-v6 + - peer-v6 + - peer-port + - ifindex + + - + name: del + doc: Delete port. + attribute-set: fou + + dont-validate: [strict, dump] + flags: [admin-perm] + + do: + request: &select_attrs + attributes: + - af + - ifindex + - port + - peer-port + - local-v4 + - peer-v4 + - local-v6 + - peer-v6 + + - + name: get + doc: Get tunnel info. + attribute-set: fou + dont-validate: [strict, dump] + + do: + request: *select_attrs + reply: *all_attrs + + dump: + reply: *all_attrs -- cgit v1.3.1