From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D43B19E7ED for ; Mon, 14 Oct 2024 11:45:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728906336; cv=none; b=b8nGYepF8OxdxZSprrj0rH76KI9ZSNte9snjVc8HqfRPBSfExRvcnoFOOgGu47FHoV66wvU/AThimXFJTTwbbx7yKKv3UGYXkrz+AbczHNhfSQw7p1cePrkVip6CXZeGMW7MSvWphuBAGIEyehdNd2ebwDBHbjCsS03Nq3RyGto= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728906336; c=relaxed/simple; bh=AsjmZEpESY0QKrwVS3n+245zwDrWO5ESBA7YsTDLidQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XN3FCC8qmVKNeqlM8ByPxa3kcq1ziiAdoMJd9lTmw+xrZ50TJtI/t+SjLkOUWdPufMJNha0aTJ6zUcR94zIzTbYMMC992MqVp/OzXWMeFb6S+UWeHsHlTjTb8ED2APWKI8FbQanA9dT3WNsiXhPVJQI1U/5OV2xvjwHYxoWYN2Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 890DB227AA8; Mon, 14 Oct 2024 13:45:29 +0200 (CEST) Date: Mon, 14 Oct 2024 13:45:28 +0200 From: Christoph Hellwig To: Damien Le Moal Cc: Christoph Hellwig , linux-nvme@lists.infradead.org, Keith Busch , Sagi Grimberg , Manivannan Sadhasivam , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Bjorn Helgaas , Lorenzo Pieralisi , linux-pci@vger.kernel.org, Rick Wertenbroek , Niklas Cassel Subject: Re: [PATCH v2 2/5] nvmef: export nvmef_create_ctrl() Message-ID: <20241014114528.GA31937@lst.de> References: <20241011121951.90019-1-dlemoal@kernel.org> <20241011121951.90019-3-dlemoal@kernel.org> <20241014084219.GA23780@lst.de> <62ba5cda-338e-48bf-b82e-60e4721b1bfb@kernel.org> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <62ba5cda-338e-48bf-b82e-60e4721b1bfb@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Oct 14, 2024 at 06:10:36PM +0900, Damien Le Moal wrote: > Nope, the PCIe "transport" is the front-end of the endpoint driver. > What this patch does is to allow this driver to be created by passing it a > string that is normally used for "nvme connect" command, which calls > nvmf_create_ctrl(). That's a pretty wrong and broken layering. PCIe isn't any different than RDMA or TCP in being a NVMe transport. > The entire thing was created to not add a PCIe host transport but rather to use > a locally created fabric host controller which connect to whatever the user > wants. That is: the PCI endpoint driver can implement a PCI interface which uses > a loop nvme device, or a tcp nvme device (and if you have a board that can do > rdma or fc, that can also be used as the backend nvme device used from the pci > endpoint driver). You can always use the nvmet passthrough backend to directly use a nvme controller to export through nvmet.