/* Locking Note: The lport lock is expected to be held before calling this routine.  */
static void fc_lport_reset_locked(struct fc_lport *lport)
/* Locking Note: The lport lock is expected to be held before calling this routine.  */
static void fc_lport_reset_locked(struct fc_lport *lport)
{
	if (lport->dns_rdata)
		lport->tt.rport_logoff(lport->dns_rdata);
	lport->ptp_rdata = NULL;
	lport->tt.disc_stop(lport);
	lport->tt.exch_mgr_reset(lport, 0, 0);
	fc_host_fabric_name(lport->host) = 0;
	if (fc_host_port_id(lport->host))
		fc_lport_set_port_id(lport, 0, NULL);
}