From: Sagi Grimberg Subject: Re: [PATCH 10/11] IB: only keep a single key in struct ib_mr Date: Wed, 6 Jan 2016 17:10:06 +0200 Message-ID: <568D2E4E.5020806@dev.mellanox.co.il> References: <56791542.6020604@dev.mellanox.co.il> <20151222131326.GA25267@lst.de> <56795514.9090704@dev.mellanox.co.il> <20151222135927.GA26311@lst.de> <56798126.9000003@dev.mellanox.co.il> <20151222210939.GA8212@obsidianresearch.com> <7sikrilf3ik3fjsgppqxh9gn.1451043246057@email.android.com> <20160105174636.GD16269@obsidianresearch.com> <20160106060806.GA16509@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20160106060806.GA16509-jcswGhMUV9g@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Christoph Hellwig , Jason Gunthorpe Cc: Liran Liss , dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Liran Liss List-Id: linux-rdma@vger.kernel.org >>> ULPs are *already* using the same registrations for both local and >>> remote access. >> >> Where? Out of tree? > > I haven't found anything in-tree for sure. We have that in iSER. iSCSI allows a FirstBurst functionality and iSER as an iSCSI transport is required to support that. The FirstBurst is divided into ImmediateData which comes with the SCSI cdb and followed by UnsolicitedDataOut commands. This depends in the target support negotiation in the iSCSI login. So basically say we have a 128k write, the first IMMEDIATEDATA_SIZE (in LIO 8k) will come in the first send with the SCSI cdb, and the next UNSOLICITED_DATA_OUT_SIZE (in LIO 56k completing to 64K first burst) will follow by several uncolicited dataout commands and the remaining 128k will be rdma_read by the target. So this is why iSER registers the entire SG list and then just work with virtual offsets in the memory region. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html