Commit 1429f044 authored by himanshu.madhani@cavium.com's avatar himanshu.madhani@cavium.com Committed by Martin K. Petersen

scsi: qla2xxx: Use known NPort ID for Management Server login

Signed-off-by: default avatarHimanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 9cd883f0
...@@ -246,8 +246,8 @@ ...@@ -246,8 +246,8 @@
* There is no correspondence between an N-PORT id and an AL_PA. Therefore the * There is no correspondence between an N-PORT id and an AL_PA. Therefore the
* valid range of an N-PORT id is 0 through 0x7ef. * valid range of an N-PORT id is 0 through 0x7ef.
*/ */
#define NPH_LAST_HANDLE 0x7ef #define NPH_LAST_HANDLE 0x7ee
#define NPH_MGMT_SERVER 0x7fa /* FFFFFA */ #define NPH_MGMT_SERVER 0x7ef /* FFFFEF */
#define NPH_SNS 0x7fc /* FFFFFC */ #define NPH_SNS 0x7fc /* FFFFFC */
#define NPH_FABRIC_CONTROLLER 0x7fd /* FFFFFD */ #define NPH_FABRIC_CONTROLLER 0x7fd /* FFFFFD */
#define NPH_F_PORT 0x7fe /* FFFFFE */ #define NPH_F_PORT 0x7fe /* FFFFFE */
......
...@@ -477,7 +477,7 @@ qla24xx_create_vhost(struct fc_vport *fc_vport) ...@@ -477,7 +477,7 @@ qla24xx_create_vhost(struct fc_vport *fc_vport)
"Couldn't allocate vp_id.\n"); "Couldn't allocate vp_id.\n");
goto create_vhost_failed; goto create_vhost_failed;
} }
vha->mgmt_svr_loop_id = 10 + vha->vp_idx; vha->mgmt_svr_loop_id = NPH_MGMT_SERVER;
vha->dpc_flags = 0L; vha->dpc_flags = 0L;
......
...@@ -3047,7 +3047,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) ...@@ -3047,7 +3047,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
host = base_vha->host; host = base_vha->host;
base_vha->req = req; base_vha->req = req;
if (IS_QLA2XXX_MIDTYPE(ha)) if (IS_QLA2XXX_MIDTYPE(ha))
base_vha->mgmt_svr_loop_id = 10 + base_vha->vp_idx; base_vha->mgmt_svr_loop_id = NPH_MGMT_SERVER;
else else
base_vha->mgmt_svr_loop_id = MANAGEMENT_SERVER + base_vha->mgmt_svr_loop_id = MANAGEMENT_SERVER +
base_vha->vp_idx; base_vha->vp_idx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment