mptcp: set error messages for set_flags
authorGeliang Tang <tanggeliang@kylinos.cn>
Tue, 5 Mar 2024 11:04:32 +0000 (12:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Mar 2024 04:24:10 +0000 (20:24 -0800)
commita4d68b160240815d7ca2f935ba690df33a525dd9
treec85b3080f507ba2125e2f11340bcf5a7a65bd474
parent6a42477fe4491e454aaeabfed5708d1eff5ff2ad
mptcp: set error messages for set_flags

In addition to returning the error value, this patch also sets an error
messages with GENL_SET_ERR_MSG or NL_SET_ERR_MSG_ATTR both for pm_netlink.c
and pm_userspace.c. It will help the userspace to identify the issue.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://lore.kernel.org/r/20240305-upstream-net-next-20240304-mptcp-misc-cleanup-v1-3-c436ba5e569b@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_netlink.c
net/mptcp/pm_userspace.c