From patchwork Fri Feb 21 10:47:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinpu Wang X-Patchwork-Id: 11396169 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 9650017F0 for ; Fri, 21 Feb 2020 10:47:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7643724650 for ; Fri, 21 Feb 2020 10:47:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MumZZjA0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728255AbgBUKrl (ORCPT ); Fri, 21 Feb 2020 05:47:41 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:33961 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728235AbgBUKrj (ORCPT ); Fri, 21 Feb 2020 05:47:39 -0500 Received: by mail-ed1-f67.google.com with SMTP id r18so1795963edl.1; Fri, 21 Feb 2020 02:47:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VHOnyJ5iCOvgT+hIcp6vsDLcdutB1OVFSHPVg2wtZ2o=; b=MumZZjA0P7XZmqTRtwyrlEyIJflfkPnAa9nqU8DDOi+swIx3c5fO/uBQ8dW+raU8OA WxW5HF908Glv9OqPcfzomCOjFCLImWeHOjmhc0Kva+w3QTDNr0O0qS7jxoWTG3ugVuuZ R/Qr+7oHK5Y8+POA22LP4NWSjtj8Hh/dH2fdw82zDBWltuxQjEX5L0LxBdoB6CLRE+rc kT0DYINAX0yHsJhn19peZI/lvBbOyKYv325k9BJOn7EQ0ewkU+2tyENrMWS0NHyWH9uL ITZGyhkiBuDo2yCZ/PuSG+l45CfhsO23hLVwKFbGNDiFhz9lcqlm9LTlQVQpRCEWvQwb zLtQ== 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=VHOnyJ5iCOvgT+hIcp6vsDLcdutB1OVFSHPVg2wtZ2o=; b=kXzGW16a7bdIUViSn+mI5ORnsd6fqo9gptSVAzEMy47Qwh7x/dgYiLX3XRrOofBYgH 1fkUf2tKtMCMqAgxhd/vSvv/cUTNHM4Y/9j3KaOhy3e2SufgLsc0gJblOZXBGU/pFrTW IiFFIzk28x8YIvTuWuBAm8RepFgdY7Z+ElR5GUskUMYTbzRDDVR07CDAHfbPPcESzGeB 9+kdVS1eHFz9FVIqpLfTQFV3AgRvZUK3TndLYR9/V7vFaef0qG/uQntc/yM3TELkOmSK sUqboedNcu17kIaL9OYXX7HkE2maq4V5RgwaF2J+tacU4VDEjjacZ0bu20j5CUDLOMWs S/tA== X-Gm-Message-State: APjAAAWGQL6z8dKUNjLZR4A+uNF876H/n+TYfnciVYI4aJMihAHDxSyc DZ3PXF0NG+fnVcuY0dT1VCsaDc5O X-Google-Smtp-Source: APXvYqz2mocftCqSQrgwAfC7msAkmHGJr2A1+1iUHnVYKaJlMsKWgwEpYb9l9l/9xCb3w+jNJ30J8Q== X-Received: by 2002:a17:907:212d:: with SMTP id qo13mr33700352ejb.376.1582282057158; Fri, 21 Feb 2020 02:47:37 -0800 (PST) Received: from jwang-Latitude-5491.pb.local ([2001:1438:4010:2558:d8ec:cf8e:d7de:fb22]) by smtp.gmail.com with ESMTPSA id 2sm270594edv.87.2020.02.21.02.47.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2020 02:47:36 -0800 (PST) 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 v9 13/25] RDMA/rtrs: include client and server modules into kernel compilation Date: Fri, 21 Feb 2020 11:47:09 +0100 Message-Id: <20200221104721.350-14-jinpuwang@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200221104721.350-1-jinpuwang@gmail.com> References: <20200221104721.350-1-jinpuwang@gmail.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org From: Jack Wang 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