Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751907AbdH2XL7 (ORCPT ); Tue, 29 Aug 2017 19:11:59 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:36628 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751425AbdH2XL5 (ORCPT ); Tue, 29 Aug 2017 19:11:57 -0400 X-Google-Smtp-Source: ADKCNb5HrWomqBQ9w+yjjxRuYtCVZf39nhvrHQc8GGBjCkRVXP/XsjFSB29s3Wjp7+RfiMOn42qNN3VWA7U2RVP5yyQ= MIME-Version: 1.0 In-Reply-To: <20170829192915.26251-5-longli@exchange.microsoft.com> References: <20170829192915.26251-1-longli@exchange.microsoft.com> <20170829192915.26251-5-longli@exchange.microsoft.com> From: Pavel Shilovsky Date: Tue, 29 Aug 2017 16:11:55 -0700 Message-ID: Subject: Re: [Patch v3 04/19] CIFS: SMBD: Add SMBDirect transport to SMB connection and Makefile To: Long Li Cc: Steve French , linux-cifs , samba-technical , Kernel Mailing List , linux-rdma@vger.kernel.org, Christoph Hellwig , Tom Talpey , Matthew Wilcox , Long Li Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2092 Lines: 53 2017-08-29 12:29 GMT-07:00 Long Li : > From: Long Li > > Add SMBDirect as an optional connection to the SMB session structure in CIFS. > When SMB session is connected through SMBDirect, upper layer uses this > connection to carry payloads. > > With the transport code hooked up to upper layer, add SMBDirect code to > Makefile. > > Signed-off-by: Long Li > --- > fs/cifs/Makefile | 2 +- > fs/cifs/cifsglob.h | 2 ++ > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/fs/cifs/Makefile b/fs/cifs/Makefile > index eed7eb0..6bb9863 100644 > --- a/fs/cifs/Makefile > +++ b/fs/cifs/Makefile > @@ -18,4 +18,4 @@ cifs-$(CONFIG_CIFS_DFS_UPCALL) += dns_resolve.o cifs_dfs_ref.o > cifs-$(CONFIG_CIFS_FSCACHE) += fscache.o cache.o > > cifs-$(CONFIG_CIFS_SMB2) += smb2ops.o smb2maperror.o smb2transport.o \ > - smb2misc.o smb2pdu.o smb2inode.o smb2file.o > + smb2misc.o smb2pdu.o smb2inode.o smb2file.o smbdirect.o > diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h > index 703c2fb..dc5404d 100644 > --- a/fs/cifs/cifsglob.h > +++ b/fs/cifs/cifsglob.h > @@ -652,6 +652,8 @@ struct TCP_Server_Info { > bool large_buf; /* is current buffer large? */ > /* use SMBD connection instead of socket */ > bool rdma; > + /* point to the SMBD connection if RDMA is used instead of socket */ > + struct smbd_connection *smbd_conn; > struct delayed_work echo; /* echo ping workqueue job */ > char *smallbuf; /* pointer to current "small" buffer */ > char *bigbuf; /* pointer to current "big" buffer */ > -- > 2.7.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-cifs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html It is better to split the current patch into 2 and merge the Makefile part to #3 and cifsglob.h part to #5. -- Best regards, Pavel Shilovsky