Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751771AbdH2Tav (ORCPT ); Tue, 29 Aug 2017 15:30:51 -0400 Received: from a2nlsmtp01-03.prod.iad2.secureserver.net ([198.71.225.37]:49546 "EHLO a2nlsmtp01-03.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751519AbdH2Tam (ORCPT ); Tue, 29 Aug 2017 15:30:42 -0400 x-originating-ip: 107.180.71.197 From: Long Li To: Steve French , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Christoph Hellwig , Tom Talpey , Matthew Wilcox Cc: Long Li Subject: [Patch v3 00/19] CIFS: Implement SMB Direct Date: Tue, 29 Aug 2017 12:28:56 -0700 Message-Id: <20170829192915.26251-1-longli@exchange.microsoft.com> X-Mailer: git-send-email 2.14.1 X-CMAE-Envelope: MS4wfNkSdRGReGnVkRcPqksFyBpn0HZDfjgwnt3v08LYLzOU0x6i0byJnyULH4yHbSgBzaDXfoXEeZ0LY1k8KigNJEHvZvQWHMajnRstYt4jKx79PC2D2s06 3C0IsVHa5UEH4UOLM8mViWWg1rVvtZ3O99vWGO0gBref2tfcS17he3hfwgwtNMYkUDBNSns9wnH1rbGL4ThSL04weRnqZ7x19EZhB4pOu54X6Fpst1vqEBWz frKgt6iUE++rZMbKl1EWcSqRBvCH8q5WRdHQ/zeUBO2+jutwSYkdYmBY0hUMSOsQKrHoV6K77wdBvXZfraLbczVertxE9/7o979MxrzXR8CWOWdqXOXSl5mk 2zqNW8YGh6pOaERKAd5hKIF2KVpX8kcEIa5WJipxCgoBJKat1kJtoR5Byg1t+Fj0PmBt/yqEzYQBEyqBxRe9UkWH5P72YWVkd5+F2xfgnjPqtamgFkNd9g9r FC1f0WMjHnxl95pv Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2341 Lines: 58 From: Long Li Starting with SMB2 dialect 3.0, Microsoft introduced SMBDirect transport protocol for transferring upper layer (SMB2) payload over RDMA via Infiniband, RoCE or iWARP. The prococol is published in [MS-SMBD] (https://msdn.microsoft.com/en-us/library/hh536346.aspx). Patch v2 added RDMA read/write via memory registration, and addressed feedbacks on v1. Patch v3 improved performance by introducing an additional queue for handling empty packets and reducing lock contention on IRQ path. Also added light weight profiling by reading TSC and addressed feedbacks on v2. Long Li (19): CIFS: Add rdma mount option CIFS: SMBD: Add SMBDirect protocol and transport constants CIFS: SMBD: Implement SMBDirect transport CIFS: SMBD: Add SMBDirect transport to SMB connection and Makefile CIFS: SMBD: Connect to SMBDirect session CIFS: SMBD: Reconnect to SMBDirect session CIFS: SMBD: Destroy SMBDirect session on shutdown or umount CIFS: SMBD: Set SMBDirect maximum read or write size for I/O CIFS: SMBD: Receive data from SMBDirect CIFS: SMBD: Send data through SMBDirect CIFS: SMBD: Define memory registration for I/O data CIFS: SMBD: Fix the definition for SMB2_CHANNEL_RDMA_V1_INVALIDATE CIFS: SMBD: Implement SMB write via RDMA read through memory registration CIFS: SMBD: Deregister memory on finishing SMB write CIFS: SMBD: Add parameter rdata to smb2_new_read_req CIFS: SMBD: Read correct returned data length for RDMA write (SMB read) I/O CIFS: SMBD: Implement SMB read via RDMA write through memory registration CIFS: SMBD: Deregister memory when finishing SMB read CIFS: SMBD: Add SMBDirect debug counters fs/cifs/Makefile | 2 +- fs/cifs/cifs_debug.c | 84 ++ fs/cifs/cifsfs.c | 2 + fs/cifs/cifsglob.h | 17 +- fs/cifs/cifssmb.c | 10 +- fs/cifs/connect.c | 46 +- fs/cifs/file.c | 10 + fs/cifs/smb1ops.c | 2 +- fs/cifs/smb2ops.c | 21 +- fs/cifs/smb2pdu.c | 114 ++- fs/cifs/smb2pdu.h | 2 +- fs/cifs/smbdirect.c | 2639 ++++++++++++++++++++++++++++++++++++++++++++++++++ fs/cifs/smbdirect.h | 324 +++++++ fs/cifs/transport.c | 7 + 14 files changed, 3260 insertions(+), 20 deletions(-) create mode 100644 fs/cifs/smbdirect.c create mode 100644 fs/cifs/smbdirect.h -- 2.7.4