Re: [PATCH RFC] PCI: endpoint: Add NVMe endpoint function driver
From: Alan Mikhak
Date: Mon Nov 11 2019 - 16:09:33 EST
On Mon, Nov 11, 2019 at 12:37 PM Christoph Hellwig <hch@xxxxxx> wrote:
>
> On Mon, Nov 11, 2019 at 09:38:09AM -0800, Alan Mikhak wrote:
> > A design goal is to not modify the Linux NVMe target driver
> > at all.
>
> As I told you before that is not a "goal" but a fundamental mistake and
> against the design philosophy of all major Linux subsystems. Please fix
> your series to move all command parsing to the code based on flags for
> fabrics vs PCIe in the few places where they significantly differ.
Thanks Christoph. Let me repeat what I think your comment is saying to me.
You prefer all parsing for nvme command received from host over PCIe
to be removed from nvme function driver and added to existing fabrics
command parsing in nvme target code with new flags introduced to
indicate fabrics vs. PCIe.
Any more thoughts?