[PATCH 05/11] nvmet-tcp: implement mptcp listen socket ops

Nilay Shroff nilay at linux.ibm.com
Sun May 31 08:01:28 PDT 2026


On 5/28/26 8:40 AM, Geliang Tang wrote:
> From: Geliang Tang<tanggeliang at kylinos.cn>
> 
> An MPTCP-specific version of struct nvmet_tcp_proto_ops is implemented
> for listen sockets. It is assigned to port->proto_ops when the transport
> type is MPTCP.
> 
> Dedicated MPTCP helpers are introduced for setting listen socket options.
> The set_nodelay and set_priority helpers set the values on all existing
> subflows using mptcp_for_each_subflow(). The set_reuseaddr helper only
> applies to the first subflow. The values are then synchronized to other
> newly created subflows in sync_socket_options().
> 
> Cc: Hannes Reinecke<hare at suse.de>
> Cc: John Meneghini<jmeneghi at redhat.com>
> Cc: Randy Jennings<randyj at purestorage.com>
> Cc: Nilay Shroff<nilay at linux.ibm.com>
> Co-developed-by: zhenwei pi<zhenwei.pi at linux.dev>
> Signed-off-by: zhenwei pi<zhenwei.pi at linux.dev>
> Co-developed-by: Hui Zhu<zhuhui at kylinos.cn>
> Signed-off-by: Hui Zhu<zhuhui at kylinos.cn>
> Co-developed-by: Gang Yan<yangang at kylinos.cn>
> Signed-off-by: Gang Yan<yangang at kylinos.cn>
> Signed-off-by: Geliang Tang<tanggeliang at kylinos.cn>
> ---
>   drivers/nvme/target/tcp.c | 13 ++++++++++++
>   include/net/mptcp.h       |  8 ++++++++
>   net/mptcp/sockopt.c       | 42 +++++++++++++++++++++++++++++++++++++++
>   3 files changed, 63 insertions(+)

Again same comment as earlier, split this into two patches.
One patch for net/ implementation where we define and export
mptcp helpers and another patch specific to nvme/ implementation
which consume those helpers.

Thanks,
--Nilay



More information about the Linux-nvme mailing list