I think it is a security problem to send confidential data in plaintext over the wire, so we should avoid doing that even if rdma is in use. We already have a similar check to prevent data integrity problems for rdma offload. Modern Windows servers support signed and encrypted rdma offload, but we don't support this yet... Stefan Metzmacher (3): cifs: introduce cifs_io_parms in smb2_async_writev() cifs: split out smb3_use_rdma_offload() helper cifs: don't try to use rdma offload on encrypted connections fs/cifs/smb2pdu.c | 89 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 70 insertions(+), 19 deletions(-) -- 2.34.1