diff options
| author | Leon Romanovsky <[email protected]> | 2023-01-31 13:31:57 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-02-02 05:04:09 +0000 |
| commit | 028fb19c6ba743ed308ba99ac325afa968795e0f (patch) | |
| tree | 0e9a952b6db48a9c87c98714c6aa6a2540bc5fd0 /net/ipv6/tcp_ipv6.c | |
| parent | neighbor: fix proxy_delay usage when it is zero (diff) | |
| download | kernel-028fb19c6ba743ed308ba99ac325afa968795e0f.tar.gz kernel-028fb19c6ba743ed308ba99ac325afa968795e0f.zip | |
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 <[email protected]>
Reviewed-by: Nikolay Aleksandrov <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Link: https://lore.kernel.org/r/6993fac557a40a1973dfa0095107c3d03d40bec1.1675171790.git.leon@kernel.org
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions
