All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geliang Tang <geliang@kernel.org>
To: mptcp@lists.linux.dev
Cc: "Geliang Tang" <tanggeliang@kylinos.cn>,
	"Günther Noack" <gnoack3000@gmail.com>
Subject: [PATCH mptcp-next 0/2] introduce msk_is_mptcp() helper
Date: Tue, 13 Oct 2026 14:56:45 +0800	[thread overview]
Message-ID: <cover.1791873760.git.tanggeliang@kylinos.cn> (raw)

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


             reply	other threads:[~2026-10-13  6:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-13  6:56 Geliang Tang [this message]
2026-10-13  6:56 ` [PATCH mptcp-next 1/2] mptcp: add msk_is_mptcp() helper 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1791873760.git.tanggeliang@kylinos.cn \
    --to=geliang@kernel.org \
    --cc=gnoack3000@gmail.com \
    --cc=mptcp@lists.linux.dev \
    --cc=tanggeliang@kylinos.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.