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: 11432115 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 E614F1515 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 AF67320746 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 S1730205AbgCKQNG (ORCPT ); Wed, 11 Mar 2020 12:13:06 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37151 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730203AbgCKQNF (ORCPT ); Wed, 11 Mar 2020 12:13:05 -0400 Received: by mail-wr1-f67.google.com with SMTP id 6so3393532wre.4 for ; Wed, 11 Mar 2020 09:13:04 -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=Iu2Wmon84ZJo8SQk2QuEQsbPP0LTjJJGUPZ0cOowVTVkasJCBIHSOy8EF8TzHofvWQ wrPY4lF/37gcfHv4GL2AKJz9O5Vimal44wQ8FbNPLfP/dcIXukKeFeP/tzQaVV+za3tP KhK4i3qwUDjM915Az3JPiindCbYagfXk7/VxHKVgOx9i1nIfWQy0q1BBJ0AjkGjF92Ak JSg5LmlQOpXcO3Mcnvh9gbzxrJ7IEGDkof/ginM2kHmWQ5Bhc/2CONesRr87lJSEgZeB NG4KEngLz435EsW1oxiDOhsLUpzWjexqdMNcgolmQw5SAP3PtOfhu565ewX4E9AvACfs mRng== X-Gm-Message-State: ANhLgQ0/efLvWI1kY3SJCTkYqEXyob+fqwv9dNLpLZXfC50u6vAUo5nZ xkW3pzA6QQWgkb+Yj8g2ra0DqbHjJZg= 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-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@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