From patchwork Fri Dec 14 00:58:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10730179 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 297CD91E for ; Fri, 14 Dec 2018 00:59:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18AC82CB8C for ; Fri, 14 Dec 2018 00:59:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CE1D2CF2C; Fri, 14 Dec 2018 00:59:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3347F2CB8F for ; Fri, 14 Dec 2018 00:59:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728820AbeLNA73 (ORCPT ); Thu, 13 Dec 2018 19:59:29 -0500 Received: from out002.mailprotect.be ([83.217.72.86]:44329 "EHLO out002.mailprotect.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728811AbeLNA73 (ORCPT ); Thu, 13 Dec 2018 19:59:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mailprotect.be; s=mail; h=Content-Transfer-Encoding:MIME-Version:Message-Id :Date:Subject:Cc:To:From:reply-to:sender:bcc:in-reply-to:references: content-type; bh=s8pq/4djW4TSjDWNWkJ9J4DzNBNFaJv4HKqAzhvhMcs=; b=tx8KNfXXFzY5 0hmKlp5sG5yv+n7uNyTmD1HveWG/JzqQCgE72fCMMQqkU+OQ7QqbV/9mm8f9uXwC/UIfq/Ar4kwWj fpEGW7FGwWjUQahV8KpKodQaFKGD5/PEKgxEjMXgbxWE9QOQJgjvwRiVR/JFnXCN/NuKqqecb5g9L 9lg4m3Nghr2yh4EIWIQxH6bIGXDIAlRpuyNH1z457tPrN7p1EzpW/6dYkYAwXK0C2F7oRyW6kiNAP Qg6EGVgZgJTPjFqkTEFMLjoD8uxBEKC5hHgMMOAkrj58OCdCePNmmEmMuqpmE2mjY5gCD23iNwDfi 2vA2Bu15Btd1tcT4Zbt/wA==; Received: from smtp-auth.mailprotect.be ([178.208.39.155]) by com-mpt-out002.mailprotect.be with esmtp (Exim 4.89) (envelope-from ) id 1gXbp4-000AGY-TD; Fri, 14 Dec 2018 01:59:23 +0100 Received: from desktop-bart.svl.corp.google.com (unknown [104.133.8.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-auth.mailprotect.be (Postfix) with ESMTPSA id 9BC38C0774; Fri, 14 Dec 2018 01:59:06 +0100 (CET) From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche Subject: [PATCH 00/13] Add support for immediate data to the SRP drivers Date: Thu, 13 Dec 2018 16:58:38 -0800 Message-Id: <20181214005851.176412-1-bvanassche@acm.org> X-Mailer: git-send-email 2.20.0.405.gbc1bbc6f85-goog MIME-Version: 1.0 X-Originating-IP: 178.208.39.155 X-SpamExperts-Domain: mailprotect.be X-SpamExperts-Username: 178.208.39.128/27 Authentication-Results: mailprotect.be; auth=pass smtp.auth=178.208.39.128/27@mailprotect.be X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.11) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5oPcsgcwMBsSiP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vP4phJQ= X-Report-Abuse-To: spam@com-mpt-mgt001.mailprotect.be Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Jason and Doug, Recently the ANSI T10 committee published the SRP2r04 draft. That document specifies how to support immediate data with the SRP protocol. As you know using immediate data reduces latency for small write requests. This patch series adds immediate data support to the SRP initiator and target drivers. Please consider this patch series for kernel v4.21. Thanks, Bart. Bart Van Assche (13): include/scsi/srp.h: Move response flag definitions into this file include/scsi/srp.h: Add support for immediate data RDMA/srp: Document srp_parse_in() arguments RDMA/srp: Handle large SCSI CDBs correctly RDMA/srp: Propagate ib_post_send() failures to the SCSI mid-layer RDMA/srp: Move srp_rdma_ch.max_ti_iu_len declaration RDMA/srp: Rework handling of the maximum information unit length RDMA/srp: Add support for immediate data RDMA/srpt: Improve coding style conformance RDMA/srpt: Make kernel-doc headers complete RDMA/srpt: Remove driver version and release date RDMA/srpt: Rework the srpt_alloc_srq() error path RDMA/srpt: Add support for immediate data drivers/infiniband/ulp/srp/ib_srp.c | 153 +++++++++++++---- drivers/infiniband/ulp/srp/ib_srp.h | 20 ++- drivers/infiniband/ulp/srpt/ib_srpt.c | 230 +++++++++++++++++++------- drivers/infiniband/ulp/srpt/ib_srpt.h | 44 +++-- include/scsi/srp.h | 26 ++- 5 files changed, 372 insertions(+), 101 deletions(-)