]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: dsa: use NL_SET_ERR_MSG_WEAK_MOD() more consistently
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 2 Feb 2023 14:03:54 +0000 (16:03 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 4 Feb 2023 03:23:32 +0000 (19:23 -0800)
commitd795527d50796b18c08462188e555139bdd6f967
tree8f47a4310330fcc9f50dd29bee1355f59c54050c
parent8065c0e13f9875f597920a2af47e5dc2940a9c4f
net: dsa: use NL_SET_ERR_MSG_WEAK_MOD() more consistently

Now that commit 028fb19c6ba7 ("netlink: provide an ability to set
default extack message") provides a weak function that doesn't override
an existing extack message provided by the driver, it makes sense to use
it also for LAG and HSR offloading, not just for bridge offloading.

Also consistently put the message string on a separate line, to reduce
line length from 92 to 84 characters.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20230202140354.3158129-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/slave.c