introduce msk_is_mptcp() helper
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mptcp: add msk_is_mptcp() helperinclude/ | +12 | 2 replies | |
| 2/2 | Squash to "bpf: Add mptcp_subflow bpf_iter"net/ | +1 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Günther Noack | Matthieu Baerts (NGI0) |
|---|---|---|
| Series | R-b | |
| 1/2 | R-b | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH mptcp-next 0/2] introduce msk_is_mptcp() helper
From: Geliang Tang <[email protected]>
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/[email protected]/
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(-)
Signature · 1 line
2.55.0