linux/include
Leon Romanovsky 028fb19c6b netlink: provide an ability to set default extack message
In netdev common pattern, extack pointer is forwarded to the drivers
to be filled with error message. However, the caller can easily
overwrite the filled message.

Instead of adding multiple "if (!extack->_msg)" checks before any
NL_SET_ERR_MSG() call, which appears after call to the driver, let's
add new macro to common code.

[1] https://lore.kernel.org/all/Y9Irgrgf3uxOjwUm@unreal
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/6993fac557a40a1973dfa0095107c3d03d40bec1.1675171790.git.leon@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-02-01 21:04:09 -08:00
..
acpi
asm-generic
clocksource
crypto
drm
dt-bindings
keys
kunit
kvm
linux netlink: provide an ability to set default extack message 2023-02-01 21:04:09 -08:00
math-emu
media
memory
misc
net netfilter: use skb_ip_totlen and iph_totlen 2023-02-01 20:54:27 -08:00
pcmcia
ras
rdma
rv
scsi
soc net: mscc: ocelot: expose vsc7514_regmap definition 2023-01-30 21:07:20 -08:00
sound
target
trace net/sock: Introduce trace_sk_data_ready() 2023-01-23 11:26:50 +00:00
uapi net: add gso_ipv4_max_size and gro_ipv4_max_size per device 2023-02-01 20:54:27 -08:00
ufs
vdso
video
xen