Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mptcp: pm: netlink: deprecate server-side attribute

Now that such info is in the 'flags' attribute, it is time to deprecate
the dedicated 'server-side' attribute.

It will be removed in a few versions.

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-3-a97a5d561a8b@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Matthieu Baerts (NGI0) and committed by
Jakub Kicinski
c8bc168f 3d7ae911

+2 -1
+1
Documentation/netlink/specs/mptcp_pm.yaml
··· 266 266 - 267 267 name: server-side 268 268 type: u8 269 + doc: "Deprecated: use 'flags'" 269 270 270 271 operations: 271 272 list:
+1 -1
net/mptcp/pm_netlink.c
··· 416 416 if (READ_ONCE(msk->pm.server_side)) { 417 417 flags |= MPTCP_PM_EV_FLAG_SERVER_SIDE; 418 418 419 - /* only set when it is the server side */ 419 + /* Deprecated, and only set when it is the server side */ 420 420 if (nla_put_u8(skb, MPTCP_ATTR_SERVER_SIDE, 1)) 421 421 return -EMSGSIZE; 422 422 }