From patchwork Wed Mar 11 16:12:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinpu Wang X-Patchwork-Id: 11432113 X-Patchwork-Delegate: jgg@ziepe.ca Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BCE5314B4 for ; Wed, 11 Mar 2020 16:13:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7C562206E7 for ; Wed, 11 Mar 2020 16:13:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=cloud.ionos.com header.i=@cloud.ionos.com header.b="MDe/EFCs" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730221AbgCKQNG (ORCPT ); Wed, 11 Mar 2020 12:13:06 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43087 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730217AbgCKQNF (ORCPT ); Wed, 11 Mar 2020 12:13:05 -0400 Received: by mail-wr1-f68.google.com with SMTP id v9so3369785wrf.10 for ; Wed, 11 Mar 2020 09:13:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.ionos.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fNwvYHkUpztFH9MuviGFAouBy9cQAXueaLElgP/2A8c=; b=MDe/EFCs3gYVCl/IV7IGkOVl/wAyxomQxhugbCbGpKdHASLnb+CID27x7hw7q9vhAg 1u6KafeC808BK5LklcXbGKzXBVQCiHuUQx1bgRcy94pQTkIZs9ykAovaLv2ImvszY3cg UlEaYz74AzLQ3xjCJVzTGGRFxjxFlbxTH0NlJnq5zdxK9Qfn4RRrtVB65B1f2Ml3dFdB 32JK+6C9Gu7qiKFneNisXMSfRt4x6vuPUuOGcQvr4P7SCICXBPMMK0qFFxavuZpXklg9 9TTMtTZ31gJhBY1Ptdhj7Ea0GevT7GRfXL2ZTOnWCp0AHduxZ0/n6f0/swwMifPRI8mm uzLw== 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=fNwvYHkUpztFH9MuviGFAouBy9cQAXueaLElgP/2A8c=; b=Hx5s4TkZ9fxhJQnwpANK75aZH0GyHLrqTm2nrnI+s8/1DwC461FXBsdmpFzCjgvNhH pKsjrnIvr/vM7VDCNPVxg1bo87R9WZe0uwZGhtBzBa3F2IIt/OpyRoIcJlGz1Q4vm3I6 Cpo7AhilIOGFZtB64cNUNEBNBTwrDYUnCOKWB3Ep/mHbTPqw+bkoBFnhlpC0IfHMTyi4 0hCXsv5jTrk5Fp9RzudH5otB1NNHWjaLrSWcGQvhrnytTJbf2C7JgDKkgbQy20npHCtD lhCMaYBjWkKeGFc30GuhF5t7Ao97bBvKmsq+crmF6CTHcokEPw4SEbgY3S+c1P3kZrgh SFmQ== X-Gm-Message-State: ANhLgQ2J+1CEJgiZo+j5c9mzXj+njnrAdA/uHWudtACPLCXyPfE2fS7w zeno9Gk+PIsDlNotWiMyodwxOQ== X-Google-Smtp-Source: ADFU+vuGcEkb31Qhxh+uTIaWID6v4TMpC7fa1ZLHjsRMUPpFJLZI3rn9AfHkYh+MwcWb9usOlyVwRA== X-Received: by 2002:a5d:5411:: with SMTP id g17mr4931687wrv.4.1583943183074; Wed, 11 Mar 2020 09:13:03 -0700 (PDT) Received: from jwang-Latitude-5491.fritz.box ([2001:16b8:4963:f600:4938:8f65:9543:5ec9]) by smtp.gmail.com with ESMTPSA id v13sm2739332wru.47.2020.03.11.09.13.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 09:13:02 -0700 (PDT) From: Jack Wang To: linux-block@vger.kernel.org, linux-rdma@vger.kernel.org Cc: axboe@kernel.dk, hch@infradead.org, sagi@grimberg.me, bvanassche@acm.org, leon@kernel.org, dledford@redhat.com, jgg@ziepe.ca, danil.kipnis@cloud.ionos.com, jinpu.wang@cloud.ionos.com, rpenyaev@suse.de, pankaj.gupta@cloud.ionos.com Subject: [PATCH v10 13/26] RDMA/rtrs: include client and server modules into kernel compilation Date: Wed, 11 Mar 2020 17:12:27 +0100 Message-Id: <20200311161240.30190-14-jinpu.wang@cloud.ionos.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200311161240.30190-1-jinpu.wang@cloud.ionos.com> References: <20200311161240.30190-1-jinpu.wang@cloud.ionos.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Add rtrs Makefile, Kconfig and also corresponding lines into upper layer infiniband/ulp files. Signed-off-by: Danil Kipnis Signed-off-by: Jack Wang --- drivers/infiniband/Kconfig | 1 + drivers/infiniband/ulp/Makefile | 1 + drivers/infiniband/ulp/rtrs/Kconfig | 27 +++++++++++++++++++++++++++ drivers/infiniband/ulp/rtrs/Makefile | 15 +++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 drivers/infiniband/ulp/rtrs/Kconfig create mode 100644 drivers/infiniband/ulp/rtrs/Makefile diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig index ade86388434f..477418b37786 100644 --- a/drivers/infiniband/Kconfig +++ b/drivers/infiniband/Kconfig @@ -107,6 +107,7 @@ source "drivers/infiniband/ulp/srpt/Kconfig" source "drivers/infiniband/ulp/iser/Kconfig" source "drivers/infiniband/ulp/isert/Kconfig" +source "drivers/infiniband/ulp/rtrs/Kconfig" source "drivers/infiniband/ulp/opa_vnic/Kconfig" diff --git a/drivers/infiniband/ulp/Makefile b/drivers/infiniband/ulp/Makefile index 437813c7b481..4d0004b58377 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_RTRS) += rtrs/ diff --git a/drivers/infiniband/ulp/rtrs/Kconfig b/drivers/infiniband/ulp/rtrs/Kconfig new file mode 100644 index 000000000000..9092b62e6dc8 --- /dev/null +++ b/drivers/infiniband/ulp/rtrs/Kconfig @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +config INFINIBAND_RTRS + tristate + depends on INFINIBAND_ADDR_TRANS + +config INFINIBAND_RTRS_CLIENT + tristate "RTRS client module" + depends on INFINIBAND_ADDR_TRANS + select INFINIBAND_RTRS + help + RDMA transport client module. + + RDMA Transport (RTRS) client implements a reliable transport layer + and also multipathing functionality and that it is intended to be + the base layer for a block storage initiator over RDMA. + +config INFINIBAND_RTRS_SERVER + tristate "RTRS server module" + depends on INFINIBAND_ADDR_TRANS + select INFINIBAND_RTRS + help + RDMA transport server module. + + RDMA Transport (RTRS) server module processing connection and IO + requests received from the RTRS client module, it will pass the + IO requests to its user eg. RNBD_server. diff --git a/drivers/infiniband/ulp/rtrs/Makefile b/drivers/infiniband/ulp/rtrs/Makefile new file mode 100644 index 000000000000..3898509be270 --- /dev/null +++ b/drivers/infiniband/ulp/rtrs/Makefile @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +rtrs-client-y := rtrs-clt.o \ + rtrs-clt-stats.o \ + rtrs-clt-sysfs.o + +rtrs-server-y := rtrs-srv.o \ + rtrs-srv-stats.o \ + rtrs-srv-sysfs.o + +rtrs-core-y := rtrs.o + +obj-$(CONFIG_INFINIBAND_RTRS) += rtrs-core.o +obj-$(CONFIG_INFINIBAND_RTRS_CLIENT) += rtrs-client.o +obj-$(CONFIG_INFINIBAND_RTRS_SERVER) += rtrs-server.o