]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wireguard: netlink: use NLA_POLICY_MASK where possible
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 21 May 2025 21:27:05 +0000 (23:27 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 27 May 2025 07:06:19 +0000 (09:06 +0200)
commitc8529020070cdb8d0739d07f2ebc27a0c1f186f7
tree617553d043848d489246ef374f76c589ffdc9364
parent71e5da46e78c1cd24e2feed251a2845327447ad8
wireguard: netlink: use NLA_POLICY_MASK where possible

Rather than manually validating flags against the various __ALL_*
constants, put this in the netlink policy description and have the upper
layer machinery check it for us.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Link: https://patch.msgid.link/20250521212707.1767879-4-Jason@zx2c4.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/wireguard/netlink.c