smb: smbdirect: introduce smbdirect_socket_init()
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Aug 2025 13:08:33 +0000 (15:08 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 28 Sep 2025 23:29:47 +0000 (18:29 -0500)
commit17e1d07430e4bd6a14e2d194791f545f8548ff58
tree7cdb8711979e5e8ab732b9e0f0a21772ddc18c4c
parent371d3ab51ce44c8a7c0f9b835b74b7340a922059
smb: smbdirect: introduce smbdirect_socket_init()

This will make it easier to keep the initialization
in a single place.

For now it's an __always_inline function as we only
share the header files. Once move to common functions
we'll have a dedicated smbdirect.ko that exports functions...

Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/common/smbdirect/smbdirect_socket.h