When logging out a port, return the N-port id to the firmware for
recycling to avoid running out of N-port id's.
JIRA Key: V2632FC-83
uint16_t *data)
{
qla2x00_mark_device_lost(vha, fcport, 1, 0);
+ fcport->loop_id = FC_NO_LOOP_ID;
return;
}
{
logio->entry_type = LOGINOUT_PORT_IOCB_TYPE;
logio->control_flags =
- cpu_to_le16(LCF_COMMAND_LOGO|LCF_IMPL_LOGO);
+ cpu_to_le16(LCF_COMMAND_LOGO|LCF_IMPL_LOGO|LCF_FREE_NPORT);
logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
logio->port_id[0] = sp->fcport->d_id.b.al_pa;
logio->port_id[1] = sp->fcport->d_id.b.area;