lpfc: Fix FDMI Fabric support in driver for Brocade
Subsystems (2)
PATCH 11/21 lpfc: Fix FDMI Fabric support in driver for Brocade
Fix FDMI Fabric support in driver for Brocade
Signed-off-by Dick Kennedy <[email protected]>
Signed-off-by James Smart <[email protected]>
--- drivers/scsi/lpfc/lpfc.h | 3 + drivers/scsi/lpfc/lpfc_attr.c | 16 +- drivers/scsi/lpfc/lpfc_ct.c | 715 +++++++++++++++++++++++++++++---------- drivers/scsi/lpfc/lpfc_els.c | 2 +- drivers/scsi/lpfc/lpfc_hbadisc.c | 6 +- drivers/scsi/lpfc/lpfc_hw.h | 206 ++++++----- 6 files changed, 650 insertions(+), 298 deletions(-)
drivers/scsi/lpfc/lpfc.h +3 -0
@@ -413,6 +413,9 @@ struct lpfc_vport {uint32_t cfg_fcp_class;uint32_t cfg_use_adisc;uint32_t cfg_fdmi_on; +#define LPFC_FDMI_SUPPORT 1/* bit 0 - FDMI supported? */ +#define LPFC_FDMI_REG_DELAY 2/* bit 1 - 60 sec registration delay */ +#define LPFC_FDMI_ALL_ATTRIB 4/* bit 2 - register ALL attributes? */ uint32_t cfg_discovery_threads;uint32_t cfg_log_verbose;uint32_t cfg_max_luns;
drivers/scsi/lpfc/lpfc_attr.c +11 -5
@@ -4573,12 +4573,18 @@ LPFC_ATTR_R(multi_ring_type, FC_TYPE_IP, 1,/* # lpfc_fdmi_on: controls FDMI support. -# 0 = no FDMI support -# 1 = support FDMI without attribute of hostname -# 2 = support FDMI with attribute of hostname -# Value range [0,2]. Default value is 0. +# Set NOT Set +# bit 0 = FDMI support no FDMI support +# LPFC_FDMI_SUPPORT just turns basic support on/off +# bit 1 = Register delay no register delay (60 seconds) +# LPFC_FDMI_REG_DELAY 60 sec registration delay after FDMI login +# bit 2 = All attributes Use a attribute subset +# LPFC_FDMI_ALL_ATTRIB applies to both port and HBA attributes +# Port attrutes subset: 1 thru 6 OR all: 1 thru 0xd 0x101 0x102 0x103 +# HBA attributes subset: 1 thru 0xb OR all: 1 thru 0xc +# Value range [0,7]. Default value is 0. */ -LPFC_VPORT_ATTR_RW (fdmi_on,0 ,0 ,2 ,"Enable FDMI support" ); +LPFC_VPORT_ATTR_RW (fdmi_on,0 ,0 ,7 ,"Enable FDMI support" );/* # Specifies the maximum number of ELS cmds we can have outstanding (for
drivers/scsi/lpfc/lpfc_ct.c +535 -180
997 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_els.c +1 -1
@@ -7172,7 +7172,7 @@ lpfc_do_scr_ns_plogi(struct lpfc_hba *phba, struct lpfc_vport *vport)return ; } -if (vport->cfg_fdmi_on) { +if (vport->cfg_fdmi_on &LPFC_FDMI_SUPPORT ) {/* If this is the first time, allocate an ndlp and initialize * it. Otherwise, make sure the node is enabled and then do the * login.
drivers/scsi/lpfc/lpfc_hbadisc.c +3 -3
@@ -5489,11 +5489,11 @@ lpfc_mbx_cmpl_fdmi_reg_login(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb)* fdmi-on=2 (supporting RPA/hostnmae) */ -if (vport->cfg_fdmi_on ==1 ) -lpfc_fdmi_cmd (vport, ndlp,SLI_MGMT_DHBA ); -else +if (vport->cfg_fdmi_on &LPFC_FDMI_REG_DELAY )mod_timer (&vport->fc_fdmitmo, jiffies +msecs_to_jiffies (1000 *60 )); +else +lpfc_fdmi_cmd (vport, ndlp,SLI_MGMT_DHBA );/* decrement the node reference count held for this callback * function.
drivers/scsi/lpfc/lpfc_hw.h +97 -109
284 lines not on this page · raw message
Signature · 1 line
1.7.11.7
Quoted 5 lines · James Smart
Fix FDMI Fabric support in driver for Brocade
Signed-off-by Dick Kennedy <[email protected]>Signed-off-by James Smart <[email protected]>---
Reviewed-by Hannes Reinecke <[email protected]>
Cheers,
Hannes
Signature · 8 lines
Dr. Hannes Reinecke zSeries & Storage [email protected] +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html