]> git.ipfire.org Git - thirdparty/linux.git/commit
netlink: Add nla_put_empty_nest helper
authorJoe Damato <jdamato@fastly.com>
Fri, 14 Feb 2025 21:12:29 +0000 (21:12 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 18 Feb 2025 00:46:03 +0000 (16:46 -0800)
commita127c18462ea619a1ace1f00540807e009dbf225
tree9b7bd2e9a8b7948ba7fe95ec172e111540a9bfdb
parentc935af429ec2344ffe716f869ddde43f5f1b20dc
netlink: Add nla_put_empty_nest helper

Creating empty nests is helpful when the exact attributes to be exposed
in the future are not known. Encapsulate the logic in a helper.

Signed-off-by: Joe Damato <jdamato@fastly.com>
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Link: https://patch.msgid.link/20250214211255.14194-2-jdamato@fastly.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/netlink.h