]> Gentwo Git Trees - linux/.git/commit
wireguard: netlink: generate netlink code
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>
Wed, 26 Nov 2025 17:35:42 +0000 (17:35 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 2 Dec 2025 03:12:49 +0000 (04:12 +0100)
commit3fd2f3d2f4259df19eec3ea5a188d7c50a37e216
tree8c6065863e6a2766c91fab76814cadb8aacbf553
parent88cedad45ba14097e06d2c9f6578688097a94691
wireguard: netlink: generate netlink code

This patch adopts netlink policies and command definitions
generated by ynl-gen, thus completing the conversion to YNL.

Given that the old and new policies are functionally identical
and have just been moved to a new file, it serves to verify
that the policies generated from the spec are identical to the
previous policy code.

The following functions are renamed:
  wg_get_device_dump() -> wg_get_device_dumpit()
  wg_set_device()      -> wg_set_device_doit()

The new files are covered by the existing drivers/net/wireguard/
pattern in MAINTAINERS.

No behavioural changes intended.

Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/net/wireguard/Makefile
drivers/net/wireguard/generated/netlink.c [new file with mode: 0644]
drivers/net/wireguard/generated/netlink.h [new file with mode: 0644]
drivers/net/wireguard/netlink.c