]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mptcp: pm: netlink: only add server-side attr when true
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Fri, 19 Sep 2025 12:08:58 +0000 (14:08 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 22 Sep 2025 18:51:24 +0000 (11:51 -0700)
commitc9809f03c158f07eaa76c7dd3606fc0a184520f2
tree3272a0707a3ff2018a6868618e514f10159d7d55
parent35626012877b80436e0627feb16520db4f0ba53e
mptcp: pm: netlink: only add server-side attr when true

This attribute is a boolean. No need to add it to set it to 'false'.

Indeed, the default value when this attribute is not set is naturally
'false'. A few bytes can then be saved by not adding this attribute if
the connection is not on the server side.

This prepares the future deprecation of its attribute, in favour of a
new flag.

Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250919-net-next-mptcp-server-side-flag-v1-1-a97a5d561a8b@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/mptcp_pm.yaml
include/uapi/linux/mptcp_pm.h
net/mptcp/pm_netlink.c
tools/testing/selftests/net/mptcp/userspace_pm.sh