Skip to content

Commit 1429f04

Browse files
himanshu.madhani@cavium.commartinkpetersen
authored andcommitted
scsi: qla2xxx: Use known NPort ID for Management Server login
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 9cd883f commit 1429f04

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

drivers/scsi/qla2xxx/qla_def.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@
246246
* There is no correspondence between an N-PORT id and an AL_PA. Therefore the
247247
* valid range of an N-PORT id is 0 through 0x7ef.
248248
*/
249-
#define NPH_LAST_HANDLE 0x7ef
250-
#define NPH_MGMT_SERVER 0x7fa /* FFFFFA */
249+
#define NPH_LAST_HANDLE 0x7ee
250+
#define NPH_MGMT_SERVER 0x7ef /* FFFFEF */
251251
#define NPH_SNS 0x7fc /* FFFFFC */
252252
#define NPH_FABRIC_CONTROLLER 0x7fd /* FFFFFD */
253253
#define NPH_F_PORT 0x7fe /* FFFFFE */

drivers/scsi/qla2xxx/qla_mid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ qla24xx_create_vhost(struct fc_vport *fc_vport)
477477
"Couldn't allocate vp_id.\n");
478478
goto create_vhost_failed;
479479
}
480-
vha->mgmt_svr_loop_id = 10 + vha->vp_idx;
480+
vha->mgmt_svr_loop_id = NPH_MGMT_SERVER;
481481

482482
vha->dpc_flags = 0L;
483483

drivers/scsi/qla2xxx/qla_os.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3047,7 +3047,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
30473047
host = base_vha->host;
30483048
base_vha->req = req;
30493049
if (IS_QLA2XXX_MIDTYPE(ha))
3050-
base_vha->mgmt_svr_loop_id = 10 + base_vha->vp_idx;
3050+
base_vha->mgmt_svr_loop_id = NPH_MGMT_SERVER;
30513051
else
30523052
base_vha->mgmt_svr_loop_id = MANAGEMENT_SERVER +
30533053
base_vha->vp_idx;

0 commit comments

Comments
 (0)