On 5/28/26 8:40 AM, Geliang Tang wrote:
From: Geliang Tang<[email protected]>
An MPTCP-specific version of struct nvmet_tcp_proto is implemented for
accept sockets. It is assigned to queue->proto when the accepted socket
protocol is IPPROTO_MPTCP.
Dedicated MPTCP helpers are introduced for setting accept socket options.
These helpers (no_linger, set_priority, set_tos) set the values on all
existing subflows using mptcp_for_each_subflow(). The values are then
synchronized to other newly created subflows in sync_socket_options().
Cc: Hannes Reinecke<[email protected]>
Cc: John Meneghini<[email protected]>
Cc: Randy Jennings<[email protected]>
Cc: Nilay Shroff<[email protected]>
Co-developed-by: zhenwei pi<[email protected]>
Signed-off-by: zhenwei pi<[email protected]>
Co-developed-by: Hui Zhu<[email protected]>
Signed-off-by: Hui Zhu<[email protected]>
Co-developed-by: Gang Yan<[email protected]>
Signed-off-by: Gang Yan<[email protected]>
Signed-off-by: Geliang Tang<[email protected]>
---
drivers/nvme/target/tcp.c | 16 ++++++++
include/net/mptcp.h | 12 ++++++
net/mptcp/sockopt.c | 79 +++++++++++++++++++++++++++++++++++++++
3 files changed, 107 insertions(+)
I'd recommend splitting this into two patches: the first patch shall
define and export mptcp_sock_xxx() APIs and then the another patch
specific to nvmet which uses those exported methods.
Thanks,
--Nilay