All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Metzmacher <metze@samba.org>
To: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org
Cc: metze@samba.org, Steve French <smfrench@gmail.com>,
	Tom Talpey <tom@talpey.com>, Long Li <longli@microsoft.com>,
	Namjae Jeon <linkinjeon@kernel.org>
Subject: [PATCH 00/18] smb: smbdirect: more use of common structures e.g. smbdirect_send_io
Date: Wed,  6 Aug 2025 19:35:46 +0200	[thread overview]
Message-ID: <cover.1754501401.git.metze@samba.org> (raw)

Hi,

this is the next step towards a common smbdirect layer
between cifs.ko and ksmbd.ko, with the aim to provide
a socket layer for userspace usage at the end of the road.

This patchset focuses on the usage of a common
smbdirect_send_io and related structures in smbdirect_socket.send_io.

Note only patches 01-08 are intended to be merged soon,
while the ksmbd patches 09-18 are only posted for
completeness (as discussed with Namjae) to get early feedback.

I used the following xfstests as regression tests:
cifs/001 generic/001 generic/002 generic/005 generic/006 generic/007 generic/010 generic/011

Between cifs.ko against ksmbd.ko via siw.ko in all combinations
with and without the patchset on each side.

Stefan Metzmacher (18):
  smb: client: remove unused enum smbd_connection_status
  smb: smbdirect: add SMBDIRECT_RECV_IO_MAX_SGE
  smb: client: make use of SMBDIRECT_RECV_IO_MAX_SGE
  smb: smbdirect: introduce struct smbdirect_send_io
  smb: client: make use of struct smbdirect_send_io
  smb: smbdirect: add smbdirect_socket.{send,recv}_io.mem.{cache,pool}
  smb: client: make use of
    smbdirect_socket.{send,recv}_io.mem.{cache,pool}
  smb: server: make use of common smbdirect_pdu.h
  smb: server: make use of common smbdirect.h
  smb: server: make use of common smbdirect_socket
  smb: server: make use of common smbdirect_socket_parameters
  smb: server: make use of smbdirect_socket->recv_io.expected
  smb: server: make use of struct smbdirect_recv_io
  smb: server: make use of smbdirect_socket.recv_io.free.{list,lock}
  smb: server: make use of smbdirect_socket.recv_io.reassembly.*
  smb: server: make use of SMBDIRECT_RECV_IO_MAX_SGE
  smb: server: make use of struct smbdirect_send_io
  smb: server: make use of
    smbdirect_socket.{send,recv}_io.mem.{cache,pool}

 fs/smb/client/smbdirect.c                  | 112 ++--
 fs/smb/client/smbdirect.h                  |  38 --
 fs/smb/common/smbdirect/smbdirect_socket.h |  54 ++
 fs/smb/server/connection.c                 |   4 +-
 fs/smb/server/connection.h                 |  10 +-
 fs/smb/server/smb2pdu.c                    |  11 +-
 fs/smb/server/smb2pdu.h                    |   6 -
 fs/smb/server/transport_rdma.c             | 742 +++++++++++----------
 fs/smb/server/transport_rdma.h             |  41 --
 9 files changed, 500 insertions(+), 518 deletions(-)

-- 
2.43.0


             reply	other threads:[~2025-08-06 17:36 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-06 17:35 Stefan Metzmacher [this message]
2025-08-06 17:35 ` [PATCH 01/18] smb: client: remove unused enum smbd_connection_status Stefan Metzmacher
2025-08-06 17:35 ` [PATCH 02/18] smb: smbdirect: add SMBDIRECT_RECV_IO_MAX_SGE Stefan Metzmacher
2025-08-06 17:35 ` [PATCH 03/18] smb: client: make use of SMBDIRECT_RECV_IO_MAX_SGE Stefan Metzmacher
2025-08-06 17:35 ` [PATCH 04/18] smb: smbdirect: introduce struct smbdirect_send_io Stefan Metzmacher
2025-08-06 17:35 ` [PATCH 05/18] smb: client: make use of " Stefan Metzmacher
2025-08-06 17:35 ` [PATCH 06/18] smb: smbdirect: add smbdirect_socket.{send,recv}_io.mem.{cache,pool} Stefan Metzmacher
2025-08-06 17:35 ` [PATCH 07/18] smb: client: make use of smbdirect_socket.{send,recv}_io.mem.{cache,pool} Stefan Metzmacher
2025-08-06 17:35 ` [PATCH 08/18] smb: server: make use of common smbdirect_pdu.h Stefan Metzmacher
2025-08-07 15:47   ` ksmbd common smbdirect headers for 6.17-rc1? (Re: [PATCH 08/18] smb: server: make use of common smbdirect_pdu.h) Stefan Metzmacher
2025-08-08  0:10     ` Namjae Jeon
2025-08-06 17:35 ` [PATCH 09/18] smb: server: make use of common smbdirect.h Stefan Metzmacher
2025-08-06 17:35 ` [PATCH 10/18] smb: server: make use of common smbdirect_socket Stefan Metzmacher
2025-08-06 17:35 ` [PATCH 11/18] smb: server: make use of common smbdirect_socket_parameters Stefan Metzmacher
2025-08-06 17:35 ` [PATCH 12/18] smb: server: make use of smbdirect_socket->recv_io.expected Stefan Metzmacher
2025-08-06 17:35 ` [PATCH 13/18] smb: server: make use of struct smbdirect_recv_io Stefan Metzmacher
2025-08-06 17:36 ` [PATCH 14/18] smb: server: make use of smbdirect_socket.recv_io.free.{list,lock} Stefan Metzmacher
2025-08-06 17:36 ` [PATCH 15/18] smb: server: make use of smbdirect_socket.recv_io.reassembly.* Stefan Metzmacher
2025-08-06 17:36 ` [PATCH 16/18] smb: server: make use of SMBDIRECT_RECV_IO_MAX_SGE Stefan Metzmacher
2025-08-06 17:36 ` [PATCH 17/18] smb: server: make use of struct smbdirect_send_io Stefan Metzmacher
2025-08-06 17:36 ` [PATCH 18/18] smb: server: make use of smbdirect_socket.{send,recv}_io.mem.{cache,pool} Stefan Metzmacher
2025-08-06 17:41 ` [PATCH 00/18] smb: smbdirect: more use of common structures e.g. smbdirect_send_io Stefan Metzmacher
2025-08-06 20:21   ` Steve French
2025-08-07 23:21     ` Namjae Jeon
2025-08-08  0:22 ` Namjae Jeon
2025-08-11  0:06 ` Namjae Jeon

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.1754501401.git.metze@samba.org \
    --to=metze@samba.org \
    --cc=linkinjeon@kernel.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=longli@microsoft.com \
    --cc=samba-technical@lists.samba.org \
    --cc=smfrench@gmail.com \
    --cc=tom@talpey.com \
    /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.