summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifs_debug.c
diff options
context:
space:
mode:
authorLong Li2017-11-07 09:54:55 +0100
committerSteve French2018-01-25 02:49:05 +0100
commit8339dd32fbad71834d61b9103e8884ada9bf3e1c (patch)
tree5654f004ba89eb477bfca48fd567df49672e0719 /fs/cifs/cifs_debug.c
parentCIFS: SMBD: Introduce kernel config option CONFIG_CIFS_SMB_DIRECT (diff)
downloadkernel-qcow2-linux-8339dd32fbad71834d61b9103e8884ada9bf3e1c.tar.gz
kernel-qcow2-linux-8339dd32fbad71834d61b9103e8884ada9bf3e1c.tar.xz
kernel-qcow2-linux-8339dd32fbad71834d61b9103e8884ada9bf3e1c.zip
CIFS: SMBD: Add rdma mount option
Add "rdma" to CIFS mount options to connect to SMB Direct. Add checks to validate this is used on SMB 3.X dialects. To connect to SMBDirect, use "mount.cifs -o rdma,vers=3.x". At the time of this patch, 3.x can be 3.0, 3.02 or 3.1.1. Signed-off-by: Long Li <longli@microsoft.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <smfrench@gmail.com> Acked-by: Ronnie Sahlberg <lsahlber.redhat.com>
Diffstat (limited to 'fs/cifs/cifs_debug.c')
-rw-r--r--fs/cifs/cifs_debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c
index cbb9534b89b4..42a57ebde630 100644
--- a/fs/cifs/cifs_debug.c
+++ b/fs/cifs/cifs_debug.c
@@ -176,6 +176,8 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
ses->ses_count, ses->serverOS, ses->serverNOS,
ses->capabilities, ses->status);
}
+ if (server->rdma)
+ seq_printf(m, "RDMA\n\t");
seq_printf(m, "TCP status: %d\n\tLocal Users To "
"Server: %d SecMode: 0x%x Req On Wire: %d",
server->tcpStatus, server->srv_count,