All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Smart <james.smart@broadcom.com>
To: Shyam Sundar <ssundar@marvell.com>,
	Nilesh Javali <njavali@marvell.com>,
	"martin.petersen@oracle.com" <martin.petersen@oracle.com>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	GR-QLogic-Storage-Upstream
	<GR-QLogic-Storage-Upstream@marvell.com>,
	James Smart <james.smart@broadcom.com>
Subject: Re: [PATCH 1/2] scsi: fc: Update statistics for host and rport on FPIN reception.
Date: Tue, 29 Sep 2020 14:33:18 -0700	[thread overview]
Message-ID: <a0ace8fd-eaec-bb53-11d1-b686a90e16f4@broadcom.com> (raw)
In-Reply-To: <1230F28E-B730-4022-B4CA-6A47C49F15FD@marvell.com>

[-- Attachment #1: Type: text/plain, Size: 2876 bytes --]



On 9/28/2020 1:07 PM, Shyam Sundar wrote:
> I am open to removing the accounting against the "detecting" port for now, given that currently, there are no known implementations where the N_Port initiates the FPIN ELS.
> Let me know what you think.

Ok - let's not change counters on the "detecting" port.

>
>      I guess this is ok - but it makes it hard for administrators.  I believe
>      this is the list of the other nports (aka npiv) on the "attached port"
>      that is generating the error.  In that respect, it is correct to
>      increment their counters - but I hope that an administrator knows that
>      may resolve to a single physical port with only 1/N the error count.
>       From our use case in linux, as an initiator, to match an rport it must
>      be a target port using npiv and from our point of view we don't know
>      that they are all sharing the same physical port.
>
> Shyam: I agree. But with the information in hand, I am not sure how we could do this better at this point.

Agree - we'll leave it as is.

>
>      Question: I know we've been asked to log the fpins to the kernel log.
>      Holding on to the counts and so is good, but it still loses some of the
>      relationship of the detected port (what detected what attached port).
>      What's your thinking on it. Should it be something in these common
>      routines and enabled/disabled by a sysfs toggle ?
>
> Shyam: So far, I have been looking at it from the point of gathering and maintain the error stats, closest to the source of their origin.
> So irrespective of if an error was "detected" by the Nx_Port itself, or by the F_Port attached to it, we are pointing the administrator towards the Nx_Port (by accounting for the error and tying it to that port).
>
> Having said that, I do not think I completely grasp the essence of your question here, and your proposal of turning it on/off. Could you please elaborate.

I'm saying that we have no idea who the "detecting" port was in all of 
the statistics. At least, by not counting the detecting port, we know 
that anything that has counters incrementing was generating the issue.   
I don't know how important it is to know the detecting port - if 
switch/fabric, it probably doesn't matter. If an NxPort, it may be 
interesting to know.  We also have no idea if all the counter updates 
occurred in 1 fpin, or in N fpins.    What I was suggesting was to log 
something like "FPIN  <type> <detecting> <attached>", with one per 
descriptor type in the FPIN.  We could default this logging off, and 
change a tunable to turn it on.

However, I feel like I'm trying to hard for this - so let's just ignore 
it. We can always add it in the future.

>
> All the other comments make sense to me. I'll roll them in and send out another patchset shortly.
>
> Regards
> Shyam
>
>
Sounds good.  Thanks

-- james


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4163 bytes --]

  reply	other threads:[~2020-09-29 21:38 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-30  6:11 [PATCH 0/2] SAN Congestion Management (SCM) statistics Nilesh Javali
2020-07-30  6:11 ` [PATCH 1/2] scsi: fc: Update statistics for host and rport on FPIN reception Nilesh Javali
2020-09-09 13:51   ` Himanshu Madhani
2020-09-23  0:01   ` James Smart
2020-09-28 20:07     ` Shyam Sundar
2020-09-29 21:33       ` James Smart [this message]
2020-09-30 20:55         ` [EXT] " Shyam Sundar
2021-10-01  1:37   ` kernel test robot
2021-10-01  1:37     ` kernel test robot
2020-07-30  6:11 ` [PATCH 2/2] scsi: fc: Update documentation of sysfs nodes for FPIN stats Nilesh Javali
2020-09-09 13:51   ` Himanshu Madhani
2020-09-23  0:15   ` James Smart
2020-09-07 10:44 ` [PATCH 0/2] SAN Congestion Management (SCM) statistics Nilesh Javali
2020-09-09  2:57   ` Martin K. Petersen
2020-09-17 16:53     ` [EXT] " Nilesh Javali
2020-09-23  8:38       ` Hannes Reinecke

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=a0ace8fd-eaec-bb53-11d1-b686a90e16f4@broadcom.com \
    --to=james.smart@broadcom.com \
    --cc=GR-QLogic-Storage-Upstream@marvell.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=njavali@marvell.com \
    --cc=ssundar@marvell.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.