Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: hare@suse.de (Hannes Reinecke)
Subject: [PATCH 1/7] nvme-fabrics: Add FC transport FC-NVME definitions
Date: Thu, 6 Oct 2016 08:31:38 +0200	[thread overview]
Message-ID: <85787daf-d5f4-ac84-efb5-c1ba105fa57c@suse.de> (raw)
In-Reply-To: <8eec5d73-98f4-7663-8b4f-85a33b21a71f@broadcom.com>

On 10/06/2016 01:21 AM, James Smart wrote:
>
>
> On 10/4/2016 6:58 AM, Christoph Hellwig wrote:
>> On Tue, Oct 04, 2016@09:32:39AM +0200, Hannes Reinecke wrote:
>>> I would have loved to use the SCSI FC headers here; eg the definitions
>>> for FC-LS are most definitely duplicated.
>>> But until we've sorted that one out:
>> I remember we discussed this before, but I've forgot the outcome on
>> why this needed to be separate.  IIRC it was just a timing issue,
>> but now that we've just missed the previous merge window we should
>> have plenty of time to sort that out properly.  Correct me if I'm wrong.
>
> I looked at the include/uapi/scsi/fc headers.
>
> The only field that should be there is the addition of the NVME type code.
>
> The LS's things - although they look very similar to ELS things, they
> aren't the same thing.  The LS items are specific to type code 0x28 - a
> value in the FC frame header, while ELS's are type code 0x01 in the
> frame header.  The content is specific to the type code.  True, some of
> the formats, like xx_ACC, and a little of xx_RJT are similar (on purpose
> by the fc-nvme group) - there's no real reason that they had to be, so
> actually forcing things into using the other's structures isn't a good
> idea in case things change.
>
> After looking at it - the only thing that I was wondering is whether the
> fc-nvme definitions should be in "include/linux/nvme-fc.h" as it's
> specific to nvme fabrics or whether they should be in
> "include/uapi/scsi/fc/fc-nvme.h" - so it's in a location where all other
> fc'isms are at. Even though NVME and the scsi directory name doesn't
> seem to make sense.
>
Ah, right. Thanks for the explanation.
I wasn't aware that the FC-LS codes are in fact type dependent.
But if they are then it indeed makes not much sense to have them merged.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare at suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg
GF: J. Hawn, J. Guild, F. Imend?rffer, HRB 16746 (AG N?rnberg)

      reply	other threads:[~2016-10-06  6:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-04  6:26 [PATCH 1/7] nvme-fabrics: Add FC transport FC-NVME definitions James Smart
2016-10-04  7:32 ` Hannes Reinecke
2016-10-04 13:58   ` Christoph Hellwig
2016-10-05  6:29     ` Sagi Grimberg
2016-10-05 23:21     ` James Smart
2016-10-06  6:31       ` Hannes Reinecke [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85787daf-d5f4-ac84-efb5-c1ba105fa57c@suse.de \
    --to=hare@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox