]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mptcp: pm: use NL_SET_ERR_MSG_ATTR when possible
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Fri, 7 Feb 2025 13:59:26 +0000 (14:59 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 11 Feb 2025 11:46:37 +0000 (12:46 +0100)
commita25a8b10491bb94e905fdbef06f0f2b80fd9f74f
treec9cfdcb921b58d7d66421e5f2647a914642eca5b
parent8cdc56f99e6c33abc855891dbd4d802be06d1404
mptcp: pm: use NL_SET_ERR_MSG_ATTR when possible

Instead of only returning a text message with GENL_SET_ERR_MSG(),
NL_SET_ERR_MSG_ATTR() can help the userspace developers by also
reporting which attribute is faulty.

When the error is specific to an attribute, NL_SET_ERR_MSG_ATTR() is now
used. The error messages have not been modified in this commit.

Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/mptcp/pm_netlink.c
net/mptcp/pm_userspace.c