Message ID | 5671efbf.h8YAdmlPeIEJ3AcO%james.smart@avagotech.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
On 12/17/2015 12:11 AM, James Smart wrote: > > Fix RDP Speed reporting. > > Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com> > Signed-off-by: James Smart <james.smart@avagotech.com> > --- > drivers/scsi/lpfc/lpfc_els.c | 17 +++++++---------- > 1 file changed, 7 insertions(+), 10 deletions(-) > > diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c > index 3394648..f7a2967 100644 > --- a/drivers/scsi/lpfc/lpfc_els.c > +++ b/drivers/scsi/lpfc/lpfc_els.c > @@ -4730,28 +4730,25 @@ lpfc_rdp_res_speed(struct fc_rdp_port_speed_desc *desc, struct lpfc_hba *phba) > > desc->tag = cpu_to_be32(RDP_PORT_SPEED_DESC_TAG); > > - switch (phba->sli4_hba.link_state.speed) { > - case LPFC_FC_LA_SPEED_1G: > + switch (phba->fc_linkspeed) { > + case LPFC_LINK_SPEED_1GHZ: > rdp_speed = RDP_PS_1GB; > break; > - case LPFC_FC_LA_SPEED_2G: > + case LPFC_LINK_SPEED_2GHZ: > rdp_speed = RDP_PS_2GB; > break; > - case LPFC_FC_LA_SPEED_4G: > + case LPFC_LINK_SPEED_4GHZ: > rdp_speed = RDP_PS_4GB; > break; > - case LPFC_FC_LA_SPEED_8G: > + case LPFC_LINK_SPEED_8GHZ: > rdp_speed = RDP_PS_8GB; > break; > - case LPFC_FC_LA_SPEED_10G: > + case LPFC_LINK_SPEED_10GHZ: > rdp_speed = RDP_PS_10GB; > break; > - case LPFC_FC_LA_SPEED_16G: > + case LPFC_LINK_SPEED_16GHZ: > rdp_speed = RDP_PS_16GB; > break; > - case LPFC_FC_LA_SPEED_32G: > - rdp_speed = RDP_PS_32GB; > - break; > default: > rdp_speed = RDP_PS_UNKNOWN; > break; > What happened to 32G? Has development ceased on that? Cheers, Hannes
See patch 11/17 for the 32G additions -- james s On 12/17/2015 12:25 AM, Hannes Reinecke wrote: > What happened to 32G? Has development ceased on that? > > Cheers, > > Hannes -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thursday, December 17, 2015 07:47:46 AM James Smart wrote: > See patch 11/17 for the 32G additions > Right. Reviewed-by: Hannes Reinecke <hare@suse.com> Cheers, Hannes
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 3394648..f7a2967 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -4730,28 +4730,25 @@ lpfc_rdp_res_speed(struct fc_rdp_port_speed_desc *desc, struct lpfc_hba *phba) desc->tag = cpu_to_be32(RDP_PORT_SPEED_DESC_TAG); - switch (phba->sli4_hba.link_state.speed) { - case LPFC_FC_LA_SPEED_1G: + switch (phba->fc_linkspeed) { + case LPFC_LINK_SPEED_1GHZ: rdp_speed = RDP_PS_1GB; break; - case LPFC_FC_LA_SPEED_2G: + case LPFC_LINK_SPEED_2GHZ: rdp_speed = RDP_PS_2GB; break; - case LPFC_FC_LA_SPEED_4G: + case LPFC_LINK_SPEED_4GHZ: rdp_speed = RDP_PS_4GB; break; - case LPFC_FC_LA_SPEED_8G: + case LPFC_LINK_SPEED_8GHZ: rdp_speed = RDP_PS_8GB; break; - case LPFC_FC_LA_SPEED_10G: + case LPFC_LINK_SPEED_10GHZ: rdp_speed = RDP_PS_10GB; break; - case LPFC_FC_LA_SPEED_16G: + case LPFC_LINK_SPEED_16GHZ: rdp_speed = RDP_PS_16GB; break; - case LPFC_FC_LA_SPEED_32G: - rdp_speed = RDP_PS_32GB; - break; default: rdp_speed = RDP_PS_UNKNOWN; break;