Received: by 10.223.164.202 with SMTP id h10csp88822wrb; Tue, 7 Nov 2017 03:23:57 -0800 (PST) X-Google-Smtp-Source: ABhQp+Sw4K05ngpaLWmf9mzo08VuZAu/v0pajIUNASNzED6MuezSrRl3susoija2dq1YZX16/pot X-Received: by 10.99.103.5 with SMTP id b5mr18677239pgc.447.1510053837022; Tue, 07 Nov 2017 03:23:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510053836; cv=none; d=google.com; s=arc-20160816; b=KPspbMH0Fjxn1YfGRRfry0AXef43d3xykIfuzaTk7c4r+1G47vmeDqD1rKuwRDH2jK g6CHFOy6tMLTdRTTbo9Zjf5zZObziO4xaJkfVAR4EZWaUTRk4hFJ0clGC70wWcetLGNX Uw4ENzNRhh9jvLccCaXspMpqv7lkGO7US8rfjqdlEPkr4jOrE08/or6x4M9z1phw79TM yY1+vmu7ssqqeBK7Y/dVphdcBw+YpbYLIGkRNLf7F9LfizXno2uUQeOthTE/HMTddJgf OpMIl6YVrHwetHIerUYlRcnPIE/wkuUi897r4Pz20Ms6pTsYS/VVWAyab5ZxowV/0GKY RHXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=IwF1hiiK60w/aMmI/8GHrd/barE0ASv/sWd/CO52RAI=; b=BqxzXozUEU6pY1DYZ+X9OpGYnPb/YD+2XxEB2+amtZi+Wf4vodB+3BHPT/DMIyDi8Y TRAaGZmbThgCdamwqtsIuSR2l+C+4buK7K+Z1kljLf82fCfbQKyVFTy8CGslCBCNBHLG yzdkqh3wDsRkQcyQ+bm7zX/uDvD8TVvXsssNW/4J5gCdjEf0Hr5DxKwDrVumfwExVNmI PvtP6aKaK0y0QIELKR60c1omTTp7mzhpjEt9xgLE0gN8TaZImsgjiUomPdTbdThhtOb+ E9aRZZYpAR6mjsViTTLXYN1jB2vGVHpns93YGqNF4bNehMbu87c4XtjyXrcnXyVTwkRc IMHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 138si922855pgd.210.2017.11.07.03.23.44; Tue, 07 Nov 2017 03:23:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753905AbdKGI5N (ORCPT + 91 others); Tue, 7 Nov 2017 03:57:13 -0500 Received: from a2nlsmtp01-02.prod.iad2.secureserver.net ([198.71.225.36]:34050 "EHLO a2nlsmtp01-02.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752180AbdKGI5G (ORCPT ); Tue, 7 Nov 2017 03:57:06 -0500 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id BzfdebYupOdJ4BzfdeYobp; Tue, 07 Nov 2017 01:56:05 -0700 x-originating-ip: 107.180.71.197 Received: from longli by linuxonhyperv.com with local (Exim 4.89) (envelope-from ) id 1eBzfd-0003JS-22; Tue, 07 Nov 2017 01:55:45 -0700 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 , Stephen Hemminger Cc: Long Li Subject: [Patch v7 00/22] CIFS: Implement SMB Direct protocol Date: Tue, 7 Nov 2017 01:54:52 -0700 Message-Id: <20171107085514.12693-1-longli@exchange.microsoft.com> X-Mailer: git-send-email 2.14.1 X-CMAE-Envelope: MS4wfKipmAxzaSlp55LBvBksFMnxPMQdG6tce0Ixn5uJyuzfMTeqNVvXxCp76VOOd7eUlpiUEA0woNYacwMxi8UhcZzEATfMY43kHUw8iyMsctgWtqI6K7bt iIXbOSrad7KDTHKphDTODRcliR07nw9D+TGCMF7LwZIEtHkjwuy1t/xsHDfV1tPlolIN80WaeLWiCk1PrmHJWGw/IQzrDCCfVGJsl6VtpakehnKuv8BbOaW1 NtcNO2LnpTqOBYfmiNNvGRKHl0zyG+TVgFccUOWLYM8wArjceKBCB7n7P4h0aFEyLZ+P6NapJe5ZItVCMaDOquxX0DBtJ39UTOG22QvtMsw+Hvivm4CVYbrj zsVvIaQyhPV6C7XQF0AjtgDSU6st5ube6geb3ucMM688OVLC6H3+Zy81D7p3UkebyR+kT74MqbxrDt/h0naYRpVVem+FEzvaqe7UBmf8GR/1eNu5xi8sfA7W gWtlj310c04I6ulsLLMJOhK9di1fq+X1sEVbog== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Long Li Starting with SMB2 dialect 3.0, Microsoft introduced SMB Direct 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). Change log: v2: Implemented RDMA read/write via memory registration. Re-arranged patches for review [Christoph Hellwig ]. Restructured the code and fixed bugs on protocol timer and keepalive [Tom Talpey ]. v3: Improved performance by introducing an additional queue for handling empty packets and reducing lock contention on IRQ path. Added light weight profiling by reading TSC. Improved the code for checking SMB versions when mounting with rdma option [Leon Romanovsky ]. Moved to use pages instead of buffers for passing I/O for RDMA [Christoph Hellwig ]. Removed redundant code and refactored I/O code paths [Christoph Hellwig , Tom Talpey ]. v4: Fixed connectivity issues with iWAPR devices. Exported configurable protocol parameters to /proc/fs/cifs [Steve French ] Re-arranged patches for review [Pavel Shilovsky ]. v5: Fixed compiling errors on ia64, i386 and when INFINIBAND is not configured. [kbuild test robot] Profiling is removed and will be introduced in a seperate patch. v6: Report internal code error via WARN_ON(). Change description in Kconfig [Pavel Shilovsky ]. v7: Removed the use of #ifdef CONFIG_CIFS_SMB_DIRECT in upper layer code calling transport I/O. [Matthew Wilcox , Tom Talpey ] Long Li (22): CIFS: SMBD: Add parameter rdata to smb2_new_read_req CIFS: SMBD: Introduce kernel config option CONFIG_CIFS_SMB_DIRECT CIFS: SMBD: Add rdma mount option CIFS: SMBD: Add SMB Direct protocol initial values and constants CIFS: SMBD: Establish SMB Direct connection CIFS: SMBD: export protocol initial values CIFS: SMBD: Implement function to create a SMB Direct connection CIFS: SMBD: Upper layer connects to SMBDirect session CIFS: SMBD: Implement function to reconnect to a SMB Direct transport CIFS: SMBD: Upper layer reconnects to SMB Direct session CIFS: SMBD: Implement function to destroy a SMB Direct connection CIFS: SMBD: Upper layer destroys SMB Direct session on shutdown or umount CIFS: SMBD: Set SMB Direct maximum read or write size for I/O CIFS: SMBD: Implement function to receive data via RDMA receive CIFS: SMBD: Upper layer receives data via RDMA receive CIFS: SMBD: Implement function to send data via RDMA send CIFS: SMBD: Upper layer sends data via RDMA send CIFS: SMBD: Implement RDMA memory registration CIFS: SMBD: Upper layer performs SMB write via RDMA read through memory registration CIFS: SMBD: Read correct returned data length for RDMA write (SMB read) I/O CIFS: SMBD: Upper layer performs SMB read via RDMA write through memory registration CIFS: SMBD: Add SMB Direct debug counters fs/cifs/Kconfig | 8 + fs/cifs/Makefile | 2 + fs/cifs/cifs_debug.c | 147 +++ fs/cifs/cifsfs.c | 2 + fs/cifs/cifsglob.h | 21 +- fs/cifs/cifssmb.c | 15 +- fs/cifs/connect.c | 53 +- fs/cifs/file.c | 17 +- fs/cifs/smb1ops.c | 4 +- fs/cifs/smb2ops.c | 24 +- fs/cifs/smb2pdu.c | 127 ++- fs/cifs/smbdirect.c | 2617 ++++++++++++++++++++++++++++++++++++++++++++++++++ fs/cifs/smbdirect.h | 330 +++++++ fs/cifs/transport.c | 8 +- 14 files changed, 3344 insertions(+), 31 deletions(-) create mode 100644 fs/cifs/smbdirect.c create mode 100644 fs/cifs/smbdirect.h -- 2.7.4 From 1584686015689185324@xxx Tue Nov 21 14:25:52 +0000 2017 X-GM-THRID: 1584686015689185324 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread