[PATCH v2 00/12] smb:common: introduce and use common smbdirect headers/structures (step1)
Stefan Metzmacher
metze at samba.org
Wed May 28 16:01:29 UTC 2025
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
More information about the samba-technical
mailing list