From patchwork Fri Feb 2 14:08:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Pen X-Patchwork-Id: 10196827 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E3F8F60467 for ; Fri, 2 Feb 2018 14:11:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D041828E89 for ; Fri, 2 Feb 2018 14:11:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD75628E86; Fri, 2 Feb 2018 14:11:14 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=unavailable 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 5783128E8D for ; Fri, 2 Feb 2018 14:11:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751993AbeBBOLN (ORCPT ); Fri, 2 Feb 2018 09:11:13 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:51209 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbeBBOK5 (ORCPT ); Fri, 2 Feb 2018 09:10:57 -0500 Received: by mail-wm0-f67.google.com with SMTP id r71so12975077wmd.1 for ; Fri, 02 Feb 2018 06:10:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=profitbricks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ucAVZAzcxuiNvfk8Tu67TYQ4m3JhbFk2ueB4haFe0hE=; b=zCg3wMXe8rC0R6G+zLn8jcym95WE4Esq/nuCgxZEj+tFuf6rZjob5LokP1SeQ+46rx hXyz7mU9wqDrEoE4v2dPB5dfyDEFaDqeeKhWfAjgCEpJ/aRUN2gZitbDQOIlfwQoAWxp rrPVzXs/n6Lz1iqrAAkvUeeoSQgvt9g6/xK4KBGHwbJXwk2ms9zmSJmft2G7aDMOUBYl Px6udtUzdEP0GFygPTfUphb5ENN5uJOFS6Iz2JHpjJjksgR/5OXWIMHdFpHAG/yntST3 +/6eMM+JWNDCgUX5QCNq3qqOQJNL3T2SUCUfWCgMn69GHYY21DsdoDPAfJ1DlIlRDh5R BmKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ucAVZAzcxuiNvfk8Tu67TYQ4m3JhbFk2ueB4haFe0hE=; b=MeHcyZZNkhOzU7G4r//lBdpg5WwAqPmQwYS0qA3iPXRsh/mS4x6EBdZZzOM5eKIAOY L8d482+WUz6SBrl1uiJt/tCKsl5JBUWGl3HooPTu4tstR0i4ffjQCdL2GS6ihytk9eIr NGjJISyE/KWxfd92JWHUo+irrXNJcH9eQlEeAlKYF9m7XwBuD//W31bnNBAUYwSULjbV R8EeDmgUQhCULMJo7K9Z1rBaHSnov19pWMGpyqHuLB+ZQD/ZlMsYfG4KjKCWTejjxzKx Ue4lqgM1gxfujNvo3zsBr57R8J2hyCjULWHrpiO2Qq/AtrPAZkaKgMyJ6l5iZnsoXr3h 1WQg== X-Gm-Message-State: AKwxyteNsXTXTG7vHseGdqgLUgL0/kodwdMInxvVTbQwXF9IPcwJkJFo ejF8SYeuu5bTdXElK+Sv2aZqrgcO X-Google-Smtp-Source: AH8x225r9Cn+crEP6iy2bgZvWFb2fSjy3m45xFa091aYw5U8kl1OAvhN7HlS17RzMUoVC24iOtXa+w== X-Received: by 10.28.145.21 with SMTP id t21mr34082359wmd.136.1517580655736; Fri, 02 Feb 2018 06:10:55 -0800 (PST) Received: from pb.pb.local ([62.217.45.26]) by smtp.gmail.com with ESMTPSA id v186sm798819wmf.17.2018.02.02.06.10.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Feb 2018 06:10:55 -0800 (PST) From: Roman Pen To: linux-block@vger.kernel.org, linux-rdma@vger.kernel.org Cc: Jens Axboe , Christoph Hellwig , Sagi Grimberg , Bart Van Assche , Or Gerlitz , Roman Pen , Danil Kipnis , Jack Wang Subject: [PATCH 12/24] ibtrs: include client and server modules into kernel compilation Date: Fri, 2 Feb 2018 15:08:52 +0100 Message-Id: <20180202140904.2017-13-roman.penyaev@profitbricks.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20180202140904.2017-1-roman.penyaev@profitbricks.com> References: <20180202140904.2017-1-roman.penyaev@profitbricks.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add IBTRS Makefile, Kconfig and also corresponding lines into upper layer infiniband/ulp files. Signed-off-by: Roman Pen Signed-off-by: Danil Kipnis Cc: Jack Wang --- drivers/infiniband/Kconfig | 1 + drivers/infiniband/ulp/Makefile | 1 + drivers/infiniband/ulp/ibtrs/Kconfig | 20 ++++++++++++++++++++ drivers/infiniband/ulp/ibtrs/Makefile | 15 +++++++++++++++ 4 files changed, 37 insertions(+) diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig index cbf186522016..7adbd0e272c4 100644 --- a/drivers/infiniband/Kconfig +++ b/drivers/infiniband/Kconfig @@ -93,6 +93,7 @@ source "drivers/infiniband/ulp/srpt/Kconfig" source "drivers/infiniband/ulp/iser/Kconfig" source "drivers/infiniband/ulp/isert/Kconfig" +source "drivers/infiniband/ulp/ibtrs/Kconfig" source "drivers/infiniband/ulp/opa_vnic/Kconfig" source "drivers/infiniband/sw/rdmavt/Kconfig" diff --git a/drivers/infiniband/ulp/Makefile b/drivers/infiniband/ulp/Makefile index 437813c7b481..1c4f10dc8d49 100644 --- a/drivers/infiniband/ulp/Makefile +++ b/drivers/infiniband/ulp/Makefile @@ -5,3 +5,4 @@ obj-$(CONFIG_INFINIBAND_SRPT) += srpt/ obj-$(CONFIG_INFINIBAND_ISER) += iser/ obj-$(CONFIG_INFINIBAND_ISERT) += isert/ obj-$(CONFIG_INFINIBAND_OPA_VNIC) += opa_vnic/ +obj-$(CONFIG_INFINIBAND_IBTRS) += ibtrs/ diff --git a/drivers/infiniband/ulp/ibtrs/Kconfig b/drivers/infiniband/ulp/ibtrs/Kconfig new file mode 100644 index 000000000000..eaeb8f3f6b4e --- /dev/null +++ b/drivers/infiniband/ulp/ibtrs/Kconfig @@ -0,0 +1,20 @@ +config INFINIBAND_IBTRS + tristate + depends on INFINIBAND_ADDR_TRANS + +config INFINIBAND_IBTRS_CLIENT + tristate "IBTRS client module" + depends on INFINIBAND_ADDR_TRANS + select INFINIBAND_IBTRS + help + IBTRS client allows for simplified data transfer and connection + establishment over RDMA (InfiniBand, RoCE, iWarp). Uses BIO-like + READ/WRITE semantics and provides multipath capabilities. + +config INFINIBAND_IBTRS_SERVER + tristate "IBTRS server module" + depends on INFINIBAND_ADDR_TRANS + select INFINIBAND_IBTRS + help + IBTRS server module processing connection and IO requests received + from the IBTRS client module. diff --git a/drivers/infiniband/ulp/ibtrs/Makefile b/drivers/infiniband/ulp/ibtrs/Makefile new file mode 100644 index 000000000000..e6ea858745ad --- /dev/null +++ b/drivers/infiniband/ulp/ibtrs/Makefile @@ -0,0 +1,15 @@ +ibtrs-client-y := ibtrs-clt.o \ + ibtrs-clt-stats.o \ + ibtrs-clt-sysfs.o + +ibtrs-server-y := ibtrs-srv.o \ + ibtrs-srv-stats.o \ + ibtrs-srv-sysfs.o + +ibtrs-core-y := ibtrs.o + +obj-$(CONFIG_INFINIBAND_IBTRS) += ibtrs-core.o +obj-$(CONFIG_INFINIBAND_IBTRS_CLIENT) += ibtrs-client.o +obj-$(CONFIG_INFINIBAND_IBTRS_SERVER) += ibtrs-server.o + +-include $(src)/compat/compat.mk