Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1509268ybh; Thu, 16 Jul 2020 14:21:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGKXwwM9kWFAUVoTEbiyMIAUpJevgvTJzUIUCoz+IuTFWt+GQEc+/LghU86DYgDtwjEckU X-Received: by 2002:aa7:c24d:: with SMTP id y13mr6499991edo.123.1594934494316; Thu, 16 Jul 2020 14:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594934494; cv=none; d=google.com; s=arc-20160816; b=SBpHByVoUWFKbkcG1zc9BVMfpBuhWJZV2brXCWCGgoQyN2jG9J4v/MyhJTC0zqiqJP InAAc0Uf/fYLwmIFwkbVMx0l0q5sPKdoFVDR/+fbZeFzAovL6Arc/mgyp/0FnZsbsJL2 5iqjYvRknSJTHqsJ2HuyDKGF95FlDUF1SkcBXpPeATRjteWxPwou8gR3AJsab3tEcZ8b UpF9vaM4KrjQDeIc25tzbewGZ3yPRQogZyd2N8Z0JaI/ISNZ1wRxkRxm31XYdDrkTAvC fGD7fppUNlBcyocOcWgK8R+TM4j0hP1QRXj9QyQjQAshJrM8SMB57ayD+taJMEEGKVoy mqXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:cc:to:from :dkim-signature; bh=9t8ChRbXN1OVDkyC3IRxGbWR7S5dFVtwk8MI6eaiLG0=; b=guCzLqES6EWJUAeyuEcTGmQCpvu4vQIg5/SrWQE6VvlB76bE6HSowpSGcyTxH4SryN h8B/oFoWxq/dUkKz2VpR7UZVoTrKBrglwEg0uasZx93LMvUZDSSrsEl7m25zzkmL6HKE dtfZmXF6yCL0N36j1/TPK+i1gY0o8IhlobQi5V72tOTCjiqySOE63o2zT0bZ4C9pTor4 Xx3GkDD2B1DIZ5Cc259S5Gn36UpZMu3vWvCTR1A5oLNeW2e8RiQmITxmSSC/lMKac3YU RQLiZFgZCTY7R7JEj3fJgUetmRKmpUbTb6dYf90/YsXhtU06MePd7l4c9wQOwy4UOh5o WNPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@deltatee.com header.s=20200525 header.b=QKijUNa7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c43si3966773edf.293.2020.07.16.14.21.11; Thu, 16 Jul 2020 14:21:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@deltatee.com header.s=20200525 header.b=QKijUNa7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727909AbgGPVSQ (ORCPT + 99 others); Thu, 16 Jul 2020 17:18:16 -0400 Received: from ale.deltatee.com ([204.191.154.188]:47690 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbgGPVRz (ORCPT ); Thu, 16 Jul 2020 17:17:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9t8ChRbXN1OVDkyC3IRxGbWR7S5dFVtwk8MI6eaiLG0=; b=QKijUNa7ayJQsXhWspeldxe5jT 5k4StK+Q+vN35//Ibd6Rao+vfuTqGAfHynjs+Uds4OhJCTK61L1M+jIjGaV7P5mqXIoE5q2ftRtFd SEZWbThMPlSxXLhoyK0/7CQnS48+sG2ehgmHcjiLjghE3jUGxDcnJJ3bpgtWKoMyAQY9F592XUfCq AAiRx6eRoglsfYLjjuTdjAsOdSMfA2d/jf7VnhjIcczAw9nRcsDMpB0G+FVZf58l/BbSkC/1CbtLG WLVYyDopHZ+izU1Axkk4oZEbRyJrSZmKKUNUhezzrAjCk7iz33X3qOJ8cCwMKsBgaCkPKPjDwgKIG DCrmMsMA==; Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jwAZQ-0005uI-As; Thu, 16 Jul 2020 14:33:33 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.92) (envelope-from ) id 1jwAZE-0004BT-Sj; Thu, 16 Jul 2020 14:33:20 -0600 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org Cc: Christoph Hellwig , Sagi Grimberg , Keith Busch , Jens Axboe , Chaitanya Kulkarni , Max Gurtovoy , Stephen Bates , Chaitanya Kulkarni , Logan Gunthorpe Date: Thu, 16 Jul 2020 14:33:14 -0600 Message-Id: <20200716203319.16022-5-logang@deltatee.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200716203319.16022-1-logang@deltatee.com> References: <20200716203319.16022-1-logang@deltatee.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, hch@lst.de, sagi@grimberg.me, kbusch@kernel.org, axboe@fb.com, maxg@mellanox.com, sbates@raithlin.com, Chaitanya.Kulkarni@wdc.com, chaitanya.kulkarni@wdc.com, logang@deltatee.com X-SA-Exim-Mail-From: gunthorp@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-6.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, MYRULES_NO_TEXT,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Subject: [PATCH v15 4/9] nvmet-passthru: Introduce NVMet passthru Kconfig option X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chaitanya Kulkarni This patch updates KConfig file for the NVMeOF target where we add new option so that user can selectively enable/disable passthru code. Signed-off-by: Chaitanya Kulkarni [logang@deltatee.com: fixed some of the wording in the help message] Signed-off-by: Logan Gunthorpe Reviewed-by: Sagi Grimberg --- drivers/nvme/target/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/nvme/target/Kconfig b/drivers/nvme/target/Kconfig index 4474952d64c6..8056955e652c 100644 --- a/drivers/nvme/target/Kconfig +++ b/drivers/nvme/target/Kconfig @@ -16,6 +16,18 @@ config NVME_TARGET To configure the NVMe target you probably want to use the nvmetcli tool from http://git.infradead.org/users/hch/nvmetcli.git. +config NVME_TARGET_PASSTHRU + bool "NVMe Target Passthrough support" + depends on NVME_TARGET + depends on NVME_CORE=y || NVME_CORE=NVME_TARGET + help + This enables target side NVMe passthru controller support for the + NVMe Over Fabrics protocol. It allows for hosts to manage and + directly access an actual NVMe controller residing on the target + side, incuding executing Vendor Unique Commands. + + If unsure, say N. + config NVME_TARGET_LOOP tristate "NVMe loopback device support" depends on NVME_TARGET -- 2.20.1