All of lore.kernel.org
 help / color / mirror / Atom feed
From: Himanshu Madhani <himanshu.madhani@oracle.com>
To: Nilesh Javali <njavali@marvell.com>
Cc: Martin Petersen <martin.petersen@oracle.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	"GR-QLogic-Storage-Upstream@marvell.com" 
	<GR-QLogic-Storage-Upstream@marvell.com>
Subject: Re: [PATCH 09/14] qla2xxx: fix npiv create erroneous error
Date: Thu, 5 Aug 2021 15:42:14 +0000	[thread overview]
Message-ID: <21F98316-8A93-4466-ABA7-B75D9A0DC498@oracle.com> (raw)
In-Reply-To: <20210805102005.20183-10-njavali@marvell.com>



> On Aug 5, 2021, at 5:20 AM, Nilesh Javali <njavali@marvell.com> wrote:
> 
> From: Quinn Tran <qutran@marvell.com>
> 
> When user create multiple NPIVs, the switch capabilities field
> is checked before a vport is allowed to create. This field is being
> toggled if a switch scan is in progress. This creates erroneous
> reject of vport create.
> 
> Signed-off-by: Quinn Tran <qutran@marvell.com>
> Signed-off-by: Nilesh Javali <njavali@marvell.com>
> ---
> drivers/scsi/qla2xxx/qla_init.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
> index c427ef7e7c72..266e9e06a6f2 100644
> --- a/drivers/scsi/qla2xxx/qla_init.c
> +++ b/drivers/scsi/qla2xxx/qla_init.c
> @@ -4623,11 +4623,11 @@ qla2x00_configure_hba(scsi_qla_host_t *vha)
> 	/* initialize */
> 	ha->min_external_loopid = SNS_FIRST_LOOP_ID;
> 	ha->operating_mode = LOOP;
> -	ha->switch_cap = 0;
> 
> 	switch (topo) {
> 	case 0:
> 		ql_dbg(ql_dbg_disc, vha, 0x200b, "HBA in NL topology.\n");
> +		ha->switch_cap = 0;
> 		ha->current_topology = ISP_CFG_NL;
> 		strcpy(connect_type, "(Loop)");
> 		break;
> @@ -4641,6 +4641,7 @@ qla2x00_configure_hba(scsi_qla_host_t *vha)
> 
> 	case 2:
> 		ql_dbg(ql_dbg_disc, vha, 0x200d, "HBA in N P2P topology.\n");
> +		ha->switch_cap = 0;
> 		ha->operating_mode = P2P;
> 		ha->current_topology = ISP_CFG_N;
> 		strcpy(connect_type, "(N_Port-to-N_Port)");
> @@ -4657,6 +4658,7 @@ qla2x00_configure_hba(scsi_qla_host_t *vha)
> 	default:
> 		ql_dbg(ql_dbg_disc, vha, 0x200f,
> 		    "HBA in unknown topology %x, using NL.\n", topo);
> +		ha->switch_cap = 0;
> 		ha->current_topology = ISP_CFG_NL;
> 		strcpy(connect_type, "(Loop)");
> 		break;
> -- 
> 2.19.0.rc0
> 

Looks Good. 

Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>

--
Himanshu Madhani	 Oracle Linux Engineering


  reply	other threads:[~2021-08-05 15:42 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-05 10:19 [PATCH 00/14] qla2xxx driver bug fixes Nilesh Javali
2021-08-05 10:19 ` [PATCH 01/14] qla2xxx: Add host attribute to trigger MPI hang Nilesh Javali
2021-08-05 15:21   ` Himanshu Madhani
2021-08-05 10:19 ` [PATCH 02/14] qla2xxx: Change %p to %px in the log messages Nilesh Javali
2021-08-05 15:21   ` Himanshu Madhani
2021-08-05 10:19 ` [PATCH 03/14] qla2xxx: adjust request/response queue size for 28xx Nilesh Javali
2021-08-05 15:21   ` Himanshu Madhani
2021-08-05 10:19 ` [PATCH 04/14] qla2xxx: Changes to support FCP2 Target Nilesh Javali
2021-08-05 15:24   ` Himanshu Madhani
2021-08-05 10:19 ` [PATCH 05/14] qla2xxx: Show OS name and version in FDMI-1 Nilesh Javali
2021-08-05 15:25   ` Himanshu Madhani
2021-08-05 10:19 ` [PATCH 06/14] qla2xxx: fix debug print of 64G link speed Nilesh Javali
2021-08-05 15:28   ` Himanshu Madhani
2021-08-05 10:19 ` [PATCH 07/14] qla2xxx: fix port type info Nilesh Javali
2021-08-05 15:34   ` Himanshu Madhani
2021-08-05 10:19 ` [PATCH 08/14] qla2xxx: fix unsafe removal from link list Nilesh Javali
2021-08-05 15:38   ` Himanshu Madhani
2021-08-05 10:20 ` [PATCH 09/14] qla2xxx: fix npiv create erroneous error Nilesh Javali
2021-08-05 15:42   ` Himanshu Madhani [this message]
2021-08-05 10:20 ` [PATCH 10/14] qla2xxx: suppress unnecessary log messages during login Nilesh Javali
2021-08-05 15:43   ` Himanshu Madhani
2021-08-05 10:20 ` [PATCH 11/14] qla2xxx: Changes to support kdump kernel Nilesh Javali
2021-08-05 15:52   ` Himanshu Madhani
2021-08-05 10:20 ` [PATCH 12/14] qla2xxx: Changes to support kdump kernel for NVMe BFS Nilesh Javali
2021-08-05 15:52   ` Himanshu Madhani
2021-08-05 10:20 ` [PATCH 13/14] qla2xxx: Sync queue idx with queue_pair_map idx Nilesh Javali
2021-08-05 15:56   ` Himanshu Madhani
2021-08-05 10:20 ` [PATCH 14/14] qla2xxx: Update version to 10.02.06.100-k Nilesh Javali
2021-08-05 15:58   ` Himanshu Madhani
2021-08-05 16:22     ` Nilesh Javali

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=21F98316-8A93-4466-ABA7-B75D9A0DC498@oracle.com \
    --to=himanshu.madhani@oracle.com \
    --cc=GR-QLogic-Storage-Upstream@marvell.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=njavali@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.