[SCSI] libfc: rename lport NONE state to DISABLED
The state NONE was meant to be invalid, but has been used as the initial state. Rename it to be DISABLED, as more descriptive. Further patches will make it the like the RESET state, except it won't transition to FLOGI until fc_lport_fabric_login() is called. Signed-off-by: Joe Eykholt <jeykholt@cisco.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
f161fb7210
commit
b1d9fd5574
3 changed files with 8 additions and 8 deletions
|
@ -1875,7 +1875,7 @@ void fc_exch_recv(struct fc_lport *lp, struct fc_exch_mgr *mp,
|
|||
u32 f_ctl;
|
||||
|
||||
/* lport lock ? */
|
||||
if (!lp || !mp || (lp->state == LPORT_ST_NONE)) {
|
||||
if (!lp || !mp || lp->state == LPORT_ST_DISABLED) {
|
||||
FC_LPORT_DBG(lp, "Receiving frames for an lport that "
|
||||
"has not been initialized correctly\n");
|
||||
fc_frame_free(fp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue