[PATCH v2 00/12] smb:common: introduce and use common smbdirect headers/structures (step1)
Steve French
smfrench at gmail.com
Fri May 30 16:51:23 UTC 2025
I have temporarily removed that patches which touch the server, ie
updated for-next with only the client and common patches, pending
answer to one of Namjae's questions about the ksmbd changes.
4e89b3b35e98 (HEAD -> for-next, origin/for-next) smb: client: make use
of common smbdirect_socket_parameters
34399d47fa28 smb: smbdirect: introduce smbdirect_socket_parameters
39bfc4a85f60 smb: client: make use of common smbdirect_socket
8ed057da2a21 smb: smbdirect: add smbdirect_socket.h
3173f315fa92 smb: client: make use of common smbdirect.h
c54ba448cb35 smb: smbdirect: add smbdirect.h with public structures
2119e7ed45d1 smb: client: make use of common smbdirect_pdu.h
0aad6cf27293 smb: smbdirect: add smbdirect_pdu.h with protocol definitions
bc01b00a6ca2 smb: client: use ParentLeaseKey in cifs_do_create
0e441841edfa smb: client: use ParentLeaseKey in open_cached_dir
5015217979ad smb: client: add ParentLeaseKey support
55423e9c534d smb: client: Remove an unused function and variable
0ff41df1cb26 (tag: v6.15) Linux 6.15
On Wed, May 28, 2025 at 11:01 AM Stefan Metzmacher <metze at samba.org> wrote:
>
> Hi,
>
> in preparation of a having a common smb_direct layer I started
> to move things into common header files and added the first
> step in using shared structues like struct smbdirect_socket.
>
> Currently only simple things are shared and there is no
> intended behaviour change (even if I found some things
> I'd like to change, but I'll defer them in order to
> make the review easier).
>
> I'll work on this the next few months in order to
> unify the in kernel client and server layers
> and expose the result to userspace too.
> So that Samba can also use it.
>
> v2:
> - change smb_direct into smbdirect
> - make usage of header files just as needed
> - also introduce struct smbdirect_socket[_parameters]
> as shared structures
>
> Stefan Metzmacher (12):
> smb: smbdirect: add smbdirect_pdu.h with protocol definitions
> smb: client: make use of common smbdirect_pdu.h
> smb: server: make use of common smbdirect_pdu.h
> smb: smbdirect: add smbdirect.h with public structures
> smb: client: make use of common smbdirect.h
> smb: server: make use of common smbdirect.h
> smb: smbdirect: add smbdirect_socket.h
> smb: client: make use of common smbdirect_socket
> smb: server: make use of common smbdirect_socket
> smb: smbdirect: introduce smbdirect_socket_parameters
> smb: client: make use of common smbdirect_socket_parameters
> smb: server: make use of common smbdirect_socket_parameters
>
> fs/smb/client/cifs_debug.c | 23 +-
> fs/smb/client/smb2ops.c | 14 +-
> fs/smb/client/smb2pdu.c | 17 +-
> fs/smb/client/smbdirect.c | 389 +++++++++++----------
> fs/smb/client/smbdirect.h | 71 +---
> fs/smb/common/smbdirect/smbdirect.h | 37 ++
> fs/smb/common/smbdirect/smbdirect_pdu.h | 55 +++
> fs/smb/common/smbdirect/smbdirect_socket.h | 43 +++
> 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 | 385 +++++++++++---------
> fs/smb/server/transport_rdma.h | 41 ---
> 14 files changed, 613 insertions(+), 493 deletions(-)
> create mode 100644 fs/smb/common/smbdirect/smbdirect.h
> create mode 100644 fs/smb/common/smbdirect/smbdirect_pdu.h
> create mode 100644 fs/smb/common/smbdirect/smbdirect_socket.h
>
> --
> 2.34.1
>
--
Thanks,
Steve
More information about the samba-technical
mailing list