netlink: add helpers for extack attr presence checking
authorJakub Kicinski <kuba@kernel.org>
Fri, 26 Aug 2022 03:09:32 +0000 (20:09 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 Aug 2022 10:20:43 +0000 (12:20 +0200)
commit45dca15759643806660e9285e6af8a1ba3c76c82
tree8103714a8db796c0ebe105ecb4fc9fd99c60bade
parent690252f19f0e486abb8590b3a7a03d4e065d93d4
netlink: add helpers for extack attr presence checking

Being able to check attribute presence and set extack
if not on one line is handy, add helpers.

Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/linux/netlink.h
include/net/genetlink.h