mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
smb: smbdirect: move fs/smb/common/smbdirect/ to fs/smb/smbdirect/
This also removes the smbdirect_ prefix from the files. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Link: https://lore.kernel.org/linux-cifs/CAHk-=whmue3PVi88K0UZLZO0at22QhQZ-yu+qO2TOKyZpGqecw@mail.gmail.com/ Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: Long Li <longli@microsoft.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
5efb579e0d
commit
1249c01aa4
|
|
@ -24590,7 +24590,7 @@ L: linux-cifs@vger.kernel.org
|
|||
L: samba-technical@lists.samba.org (moderated for non-subscribers)
|
||||
S: Maintained
|
||||
F: fs/smb/client/smbdirect.*
|
||||
F: fs/smb/common/smbdirect/
|
||||
F: fs/smb/smbdirect/
|
||||
F: fs/smb/server/transport_rdma.*
|
||||
|
||||
SMC91x ETHERNET DRIVER
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
source "fs/smb/client/Kconfig"
|
||||
source "fs/smb/server/Kconfig"
|
||||
source "fs/smb/common/smbdirect/Kconfig"
|
||||
source "fs/smb/smbdirect/Kconfig"
|
||||
|
||||
config SMBFS
|
||||
tristate
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
obj-$(CONFIG_SMBFS) += common/
|
||||
obj-$(CONFIG_SMBDIRECT) += smbdirect/
|
||||
obj-$(CONFIG_CIFS) += client/
|
||||
obj-$(CONFIG_SMB_SERVER) += server/
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ config CIFS_SMB_DIRECT
|
|||
bool "SMB Direct support"
|
||||
depends on CIFS && INFINIBAND && INFINIBAND_ADDR_TRANS
|
||||
depends on CIFS=m || INFINIBAND=y
|
||||
select SMB_COMMON_SMBDIRECT
|
||||
select SMBDIRECT
|
||||
help
|
||||
Enables SMB Direct support for SMB 3.0, 3.02 and 3.1.1.
|
||||
SMB Direct allows transferring SMB packets over RDMA. If unsure,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#include "cifs_debug.h"
|
||||
#include "cifsproto.h"
|
||||
#include "smb2proto.h"
|
||||
#include "../common/smbdirect/smbdirect_public.h"
|
||||
#include "../smbdirect/public.h"
|
||||
|
||||
/* Port numbers for SMBD transport */
|
||||
#define SMB_PORT 445
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include "cifsglob.h"
|
||||
|
||||
#include "../common/smbdirect/smbdirect.h"
|
||||
#include "../smbdirect/smbdirect.h"
|
||||
|
||||
extern int rdma_readwrite_threshold;
|
||||
extern int smbd_max_frmr_depth;
|
||||
|
|
|
|||
|
|
@ -4,4 +4,3 @@
|
|||
#
|
||||
|
||||
obj-$(CONFIG_SMBFS) += cifs_md4.o
|
||||
obj-$(CONFIG_SMB_COMMON_SMBDIRECT) += smbdirect/
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#
|
||||
# Makefile for smbdirect support
|
||||
#
|
||||
|
||||
obj-$(CONFIG_SMB_COMMON_SMBDIRECT) += smbdirect.o
|
||||
|
||||
smbdirect-y := \
|
||||
smbdirect_socket.o \
|
||||
smbdirect_connection.o \
|
||||
smbdirect_mr.o \
|
||||
smbdirect_rw.o \
|
||||
smbdirect_debug.o \
|
||||
smbdirect_connect.o \
|
||||
smbdirect_listen.o \
|
||||
smbdirect_accept.o \
|
||||
smbdirect_devices.o \
|
||||
smbdirect_main.o
|
||||
|
|
@ -49,7 +49,7 @@ config SMB_SERVER_SMBDIRECT
|
|||
bool "Support for SMB Direct protocol"
|
||||
depends on SMB_SERVER && INFINIBAND && INFINIBAND_ADDR_TRANS
|
||||
depends on SMB_SERVER=m || INFINIBAND=y
|
||||
select SMB_COMMON_SMBDIRECT
|
||||
select SMBDIRECT
|
||||
default n
|
||||
|
||||
help
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
#include "smb_common.h"
|
||||
#include "../common/smb2status.h"
|
||||
#include "transport_rdma.h"
|
||||
#include "../common/smbdirect/smbdirect_public.h"
|
||||
#include "../smbdirect/public.h"
|
||||
|
||||
|
||||
#define SMB_DIRECT_PORT_IWARP 5445
|
||||
|
|
|
|||
|
|
@ -25,6 +25,6 @@ static inline void init_smbd_max_io_size(unsigned int sz) { }
|
|||
static inline unsigned int get_smbd_max_read_write_size(struct ksmbd_transport *kt) { return 0; }
|
||||
#endif
|
||||
|
||||
#include "../common/smbdirect/smbdirect.h"
|
||||
#include "../smbdirect/smbdirect.h"
|
||||
|
||||
#endif /* __KSMBD_TRANSPORT_RDMA_H__ */
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# smbdirect configuration
|
||||
|
||||
config SMB_COMMON_SMBDIRECT
|
||||
config SMBDIRECT
|
||||
def_tristate n
|
||||
depends on INFINIBAND && INFINIBAND_ADDR_TRANS
|
||||
depends on m || INFINIBAND=y
|
||||
18
fs/smb/smbdirect/Makefile
Normal file
18
fs/smb/smbdirect/Makefile
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#
|
||||
# Makefile for smbdirect support
|
||||
#
|
||||
|
||||
obj-$(CONFIG_SMBDIRECT) += smbdirect.o
|
||||
|
||||
smbdirect-y := \
|
||||
socket.o \
|
||||
connection.o \
|
||||
mr.o \
|
||||
rw.o \
|
||||
debug.o \
|
||||
connect.o \
|
||||
listen.o \
|
||||
accept.o \
|
||||
devices.o \
|
||||
main.o
|
||||
|
|
@ -5,9 +5,9 @@
|
|||
* Copyright (c) 2025, Stefan Metzmacher
|
||||
*/
|
||||
|
||||
#include "smbdirect_internal.h"
|
||||
#include "internal.h"
|
||||
#include <net/sock.h>
|
||||
#include "../../common/smb2status.h"
|
||||
#include "../common/smb2status.h"
|
||||
|
||||
static int smbdirect_accept_rdma_event_handler(struct rdma_cm_id *id,
|
||||
struct rdma_cm_event *event);
|
||||
|
|
@ -3,8 +3,8 @@
|
|||
* Copyright (c) 2012,2016,2017,2025 Stefan Metzmacher
|
||||
*/
|
||||
|
||||
#include "smbdirect_internal.h"
|
||||
#include "../../common/smb2status.h"
|
||||
#include "internal.h"
|
||||
#include "../common/smb2status.h"
|
||||
|
||||
static int smbdirect_connect_setup_connection(struct smbdirect_socket *sc);
|
||||
static int smbdirect_connect_resolve_addr(struct smbdirect_socket *sc,
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2025, Stefan Metzmacher
|
||||
*/
|
||||
|
||||
#include "smbdirect_internal.h"
|
||||
#include "internal.h"
|
||||
#include <linux/folio_queue.h>
|
||||
|
||||
struct smbdirect_map_sges {
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2025, Stefan Metzmacher
|
||||
*/
|
||||
|
||||
#include "smbdirect_internal.h"
|
||||
#include "internal.h"
|
||||
#include <linux/seq_file.h>
|
||||
|
||||
void smbdirect_connection_legacy_debug_proc_show(struct smbdirect_socket *sc,
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2025 Stefan Metzmacher
|
||||
*/
|
||||
|
||||
#include "smbdirect_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
static u8 smbdirect_ib_device_rdma_capable_node_type(struct ib_device *ib_dev)
|
||||
{
|
||||
|
|
@ -9,8 +9,8 @@
|
|||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include "smbdirect.h"
|
||||
#include "smbdirect_pdu.h"
|
||||
#include "smbdirect_public.h"
|
||||
#include "pdu.h"
|
||||
#include "public.h"
|
||||
|
||||
#include <linux/mutex.h>
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ struct smbdirect_module_state {
|
|||
|
||||
extern struct smbdirect_module_state smbdirect_globals;
|
||||
|
||||
#include "smbdirect_socket.h"
|
||||
#include "socket.h"
|
||||
|
||||
struct smbdirect_device {
|
||||
struct list_head list;
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2025, Stefan Metzmacher
|
||||
*/
|
||||
|
||||
#include "smbdirect_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
static int smbdirect_listen_rdma_event_handler(struct rdma_cm_id *id,
|
||||
struct rdma_cm_event *event);
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
* Copyright (c) 2025, Stefan Metzmacher
|
||||
*/
|
||||
|
||||
#include "smbdirect_internal.h"
|
||||
#include "internal.h"
|
||||
#include <linux/module.h>
|
||||
|
||||
struct smbdirect_module_state smbdirect_globals = {
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2025, Stefan Metzmacher
|
||||
*/
|
||||
|
||||
#include "smbdirect_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
/*
|
||||
* Allocate MRs used for RDMA read/write
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2025, Stefan Metzmacher
|
||||
*/
|
||||
|
||||
#include "smbdirect_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
static int smbdirect_connection_wait_for_rw_credits(struct smbdirect_socket *sc,
|
||||
int credits)
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2025, Stefan Metzmacher
|
||||
*/
|
||||
|
||||
#include "smbdirect_internal.h"
|
||||
#include "internal.h"
|
||||
|
||||
bool smbdirect_frwr_is_supported(const struct ib_device_attr *attrs)
|
||||
{
|
||||
Loading…
Reference in New Issue
Block a user