diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-08-26 06:09:30 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-08-30 13:20:43 +0300 |
commit | 0c95cea24f30eb28d464c593d8fbd64cd305791b (patch) | |
tree | 05a577e14b355a97f8b42fba0d5dcb48760a06b4 /include/uapi/linux/netlink.h | |
parent | 47cf88993c910840d565631ad906abdca9168231 (diff) | |
download | linux-0c95cea24f30eb28d464c593d8fbd64cd305791b.tar.xz |
netlink: factor out extack composition
The ext_ack writing code looks very "organically grown".
Move the calculation of the size and writing out to helpers.
This is more idiomatic and gives us the ability to return early
avoiding the long (and randomly ordered) "if" conditions.
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/uapi/linux/netlink.h')
0 files changed, 0 insertions, 0 deletions