diff options
author | Joe Eykholt <jeykholt@cisco.com> | 2009-11-03 14:49:11 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:01:18 -0500 |
commit | e6d8a1b0b53a156979120dd0593c1867b8ea89d3 (patch) | |
tree | 35aa45e6fe69f7d2c4658681c759fdc21e988700 /drivers/scsi/libfc | |
parent | 093bb6a2d378ee83fc6ab886c772b6be86abb5a8 (diff) |
[SCSI] libfc: add host number to lport link up/down messages.
The libfc link up/down messages don't indicate which port is changing.
The Port ID will often be 0.
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@suse.de>
Diffstat (limited to 'drivers/scsi/libfc')
-rw-r--r-- | drivers/scsi/libfc/fc_lport.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c index 653b52dd2ff7..d3aec1959394 100644 --- a/drivers/scsi/libfc/fc_lport.c +++ b/drivers/scsi/libfc/fc_lport.c | |||
@@ -568,8 +568,8 @@ void __fc_linkup(struct fc_lport *lport) | |||
568 | */ | 568 | */ |
569 | void fc_linkup(struct fc_lport *lport) | 569 | void fc_linkup(struct fc_lport *lport) |
570 | { | 570 | { |
571 | printk(KERN_INFO "libfc: Link up on port (%6x)\n", | 571 | printk(KERN_INFO "host%d: libfc: Link up on port (%6x)\n", |
572 | fc_host_port_id(lport->host)); | 572 | lport->host->host_no, fc_host_port_id(lport->host)); |
573 | 573 | ||
574 | mutex_lock(&lport->lp_mutex); | 574 | mutex_lock(&lport->lp_mutex); |
575 | __fc_linkup(lport); | 575 | __fc_linkup(lport); |
@@ -598,8 +598,8 @@ void __fc_linkdown(struct fc_lport *lport) | |||
598 | */ | 598 | */ |
599 | void fc_linkdown(struct fc_lport *lport) | 599 | void fc_linkdown(struct fc_lport *lport) |
600 | { | 600 | { |
601 | printk(KERN_INFO "libfc: Link down on port (%6x)\n", | 601 | printk(KERN_INFO "host%d: libfc: Link down on port (%6x)\n", |
602 | fc_host_port_id(lport->host)); | 602 | lport->host->host_no, fc_host_port_id(lport->host)); |
603 | 603 | ||
604 | mutex_lock(&lport->lp_mutex); | 604 | mutex_lock(&lport->lp_mutex); |
605 | __fc_linkdown(lport); | 605 | __fc_linkdown(lport); |
@@ -699,8 +699,9 @@ void fc_lport_disc_callback(struct fc_lport *lport, enum fc_disc_event event) | |||
699 | FC_LPORT_DBG(lport, "Discovery succeeded\n"); | 699 | FC_LPORT_DBG(lport, "Discovery succeeded\n"); |
700 | break; | 700 | break; |
701 | case DISC_EV_FAILED: | 701 | case DISC_EV_FAILED: |
702 | printk(KERN_ERR "libfc: Discovery failed for port (%6x)\n", | 702 | printk(KERN_ERR "host%d: libfc: " |
703 | fc_host_port_id(lport->host)); | 703 | "Discovery failed for port (%6x)\n", |
704 | lport->host->host_no, fc_host_port_id(lport->host)); | ||
704 | mutex_lock(&lport->lp_mutex); | 705 | mutex_lock(&lport->lp_mutex); |
705 | fc_lport_enter_reset(lport); | 706 | fc_lport_enter_reset(lport); |
706 | mutex_unlock(&lport->lp_mutex); | 707 | mutex_unlock(&lport->lp_mutex); |
@@ -791,8 +792,9 @@ static void fc_lport_recv_flogi_req(struct fc_seq *sp_in, | |||
791 | goto out; | 792 | goto out; |
792 | remote_wwpn = get_unaligned_be64(&flp->fl_wwpn); | 793 | remote_wwpn = get_unaligned_be64(&flp->fl_wwpn); |
793 | if (remote_wwpn == lport->wwpn) { | 794 | if (remote_wwpn == lport->wwpn) { |
794 | printk(KERN_WARNING "libfc: Received FLOGI from port " | 795 | printk(KERN_WARNING "host%d: libfc: Received FLOGI from port " |
795 | "with same WWPN %llx\n", remote_wwpn); | 796 | "with same WWPN %llx\n", |
797 | lport->host->host_no, remote_wwpn); | ||
796 | goto out; | 798 | goto out; |
797 | } | 799 | } |
798 | FC_LPORT_DBG(lport, "FLOGI from port WWPN %llx\n", remote_wwpn); | 800 | FC_LPORT_DBG(lport, "FLOGI from port WWPN %llx\n", remote_wwpn); |
@@ -1471,8 +1473,10 @@ void fc_lport_flogi_resp(struct fc_seq *sp, struct fc_frame *fp, | |||
1471 | lport->e_d_tov = e_d_tov; | 1473 | lport->e_d_tov = e_d_tov; |
1472 | lport->r_a_tov = 2 * e_d_tov; | 1474 | lport->r_a_tov = 2 * e_d_tov; |
1473 | fc_lport_set_port_id(lport, did, fp); | 1475 | fc_lport_set_port_id(lport, did, fp); |
1474 | printk(KERN_INFO "libfc: Port (%6x) entered " | 1476 | printk(KERN_INFO "host%d: libfc: " |
1475 | "point to point mode\n", did); | 1477 | "Port (%6x) entered " |
1478 | "point-to-point mode\n", | ||
1479 | lport->host->host_no, did); | ||
1476 | fc_lport_ptp_setup(lport, ntoh24(fh->fh_s_id), | 1480 | fc_lport_ptp_setup(lport, ntoh24(fh->fh_s_id), |
1477 | get_unaligned_be64( | 1481 | get_unaligned_be64( |
1478 | &flp->fl_wwpn), | 1482 | &flp->fl_wwpn), |