CIFS: SMBD: Add rdma mount option
authorLong Li <longli@microsoft.com>
Tue, 7 Nov 2017 08:54:55 +0000 (01:54 -0700)
committerSteve French <smfrench@gmail.com>
Thu, 25 Jan 2018 01:49:05 +0000 (19:49 -0600)
commit8339dd32fbad71834d61b9103e8884ada9bf3e1c
tree5654f004ba89eb477bfca48fd567df49672e0719
parent2b6ed88037cf11fadbf74b4a676aed5e1f6f39c3
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>
fs/cifs/cifs_debug.c
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/connect.c