Commit 81e75177 authored by James Smart's avatar James Smart Committed by Martin K. Petersen

lpfc: Fix RDP Speed reporting.

Fix RDP Speed reporting.
Signed-off-by: default avatarDick Kennedy <dick.kennedy@avagotech.com>
Signed-off-by: default avatarJames Smart <james.smart@avagotech.com>
Reviewed-by: default avatarHannes Reinicke <hare@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 4258e98e
...@@ -4730,28 +4730,25 @@ lpfc_rdp_res_speed(struct fc_rdp_port_speed_desc *desc, struct lpfc_hba *phba) ...@@ -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); desc->tag = cpu_to_be32(RDP_PORT_SPEED_DESC_TAG);
switch (phba->sli4_hba.link_state.speed) { switch (phba->fc_linkspeed) {
case LPFC_FC_LA_SPEED_1G: case LPFC_LINK_SPEED_1GHZ:
rdp_speed = RDP_PS_1GB; rdp_speed = RDP_PS_1GB;
break; break;
case LPFC_FC_LA_SPEED_2G: case LPFC_LINK_SPEED_2GHZ:
rdp_speed = RDP_PS_2GB; rdp_speed = RDP_PS_2GB;
break; break;
case LPFC_FC_LA_SPEED_4G: case LPFC_LINK_SPEED_4GHZ:
rdp_speed = RDP_PS_4GB; rdp_speed = RDP_PS_4GB;
break; break;
case LPFC_FC_LA_SPEED_8G: case LPFC_LINK_SPEED_8GHZ:
rdp_speed = RDP_PS_8GB; rdp_speed = RDP_PS_8GB;
break; break;
case LPFC_FC_LA_SPEED_10G: case LPFC_LINK_SPEED_10GHZ:
rdp_speed = RDP_PS_10GB; rdp_speed = RDP_PS_10GB;
break; break;
case LPFC_FC_LA_SPEED_16G: case LPFC_LINK_SPEED_16GHZ:
rdp_speed = RDP_PS_16GB; rdp_speed = RDP_PS_16GB;
break; break;
case LPFC_FC_LA_SPEED_32G:
rdp_speed = RDP_PS_32GB;
break;
default: default:
rdp_speed = RDP_PS_UNKNOWN; rdp_speed = RDP_PS_UNKNOWN;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment