All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-next 0/2] introduce msk_is_mptcp() helper
@ 2026-10-13  6:56 Geliang Tang
  2026-10-13  6:56 ` [PATCH mptcp-next 1/2] mptcp: add " Geliang Tang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Geliang Tang @ 2026-10-13  6:56 UTC (permalink / raw)
  To: mptcp; +Cc: Geliang Tang, Günther Noack

From: Geliang Tang <tanggeliang@kylinos.cn>

This series introduces the msk_is_mptcp() helper function to check
whether a socket is an MPTCP parent socket (IPPROTO_MPTCP on SOCK_STREAM).

This helper is useful for adding MPTCP support in various subsystems,
such as MPTCP sockmap support [1] and landlock MPTCP access rights [2].

Naming rationale:
- Initially considered "sk_is_msk", but as Günther pointed out, "msk"
  is already used as an abbreviation in net/mctp, which could cause
  confusion
- "sk_is_mptcp()" is already taken and used to check whether a socket
  is an MPTCP subflow (tcp_sk(sk)->is_mptcp)
- Following the convention of rsk_is_mptcp(), settled on msk_is_mptcp()
  to clearly distinguish MPTCP parent socket checks from subflow checks

[1] mptcp: add sk_is_msk() helper and use it in sockmap
https://patchwork.kernel.org/project/mptcp/patch/29ec7b3fc7febc1c8946add34f859c8253d9714f.1789294365.git.tanggeliang@kylinos.cn/
[2] landlock: Add MPTCP bind and connect access rights
https://patchwork.kernel.org/project/mptcp/patch/20260830201650.67050-4-gnoack3000@gmail.com/

Geliang Tang (2):
  mptcp: add msk_is_mptcp() helper
  Squash to "bpf: Add mptcp_subflow bpf_iter"

 include/net/mptcp.h | 12 ++++++++++++
 net/mptcp/bpf.c     |  9 +--------
 2 files changed, 13 insertions(+), 8 deletions(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-14  5:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-13  6:56 [PATCH mptcp-next 0/2] introduce msk_is_mptcp() helper Geliang Tang
2026-10-13  6:56 ` [PATCH mptcp-next 1/2] mptcp: add " Geliang Tang
2026-10-14  5:13   ` Günther Noack
2026-10-13  6:56 ` [PATCH mptcp-next 2/2] Squash to "bpf: Add mptcp_subflow bpf_iter" Geliang Tang
2026-10-13  8:08 ` [PATCH mptcp-next 0/2] introduce msk_is_mptcp() helper MPTCP CI

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.