Commit c01461a6 authored by Satish Kharat's avatar Satish Kharat Committed by Martin K. Petersen

scsi: fnic: support to display 20G port speed

This patch is to add fnic 20G port speed display in sysfs.

[mkp: typo]
Signed-off-by: default avatarSatish Kharat <satishkh@cisco.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent cd464d83
...@@ -70,6 +70,10 @@ void fnic_handle_link(struct work_struct *work) ...@@ -70,6 +70,10 @@ void fnic_handle_link(struct work_struct *work)
fc_host_speed(fnic->lport->host) = FC_PORTSPEED_10GBIT; fc_host_speed(fnic->lport->host) = FC_PORTSPEED_10GBIT;
fnic->lport->link_supported_speeds = FC_PORTSPEED_10GBIT; fnic->lport->link_supported_speeds = FC_PORTSPEED_10GBIT;
break; break;
case DCEM_PORTSPEED_20G:
fc_host_speed(fnic->lport->host) = FC_PORTSPEED_20GBIT;
fnic->lport->link_supported_speeds = FC_PORTSPEED_20GBIT;
break;
case DCEM_PORTSPEED_25G: case DCEM_PORTSPEED_25G:
fc_host_speed(fnic->lport->host) = FC_PORTSPEED_25GBIT; fc_host_speed(fnic->lport->host) = FC_PORTSPEED_25GBIT;
fnic->lport->link_supported_speeds = FC_PORTSPEED_25GBIT; fnic->lport->link_supported_speeds = FC_PORTSPEED_25GBIT;
......
...@@ -70,9 +70,10 @@ enum fnic_port_speeds { ...@@ -70,9 +70,10 @@ enum fnic_port_speeds {
DCEM_PORTSPEED_NONE = 0, DCEM_PORTSPEED_NONE = 0,
DCEM_PORTSPEED_1G = 1000, DCEM_PORTSPEED_1G = 1000,
DCEM_PORTSPEED_10G = 10000, DCEM_PORTSPEED_10G = 10000,
DCEM_PORTSPEED_20G = 20000,
DCEM_PORTSPEED_25G = 25000,
DCEM_PORTSPEED_40G = 40000, DCEM_PORTSPEED_40G = 40000,
DCEM_PORTSPEED_4x10G = 41000, DCEM_PORTSPEED_4x10G = 41000,
DCEM_PORTSPEED_25G = 25000,
DCEM_PORTSPEED_100G = 100000, DCEM_PORTSPEED_100G = 100000,
}; };
#endif /* _FNIC_IO_H_ */ #endif /* _FNIC_IO_H_ */
...@@ -178,6 +178,9 @@ static void fnic_get_host_speed(struct Scsi_Host *shost) ...@@ -178,6 +178,9 @@ static void fnic_get_host_speed(struct Scsi_Host *shost)
case DCEM_PORTSPEED_10G: case DCEM_PORTSPEED_10G:
fc_host_speed(shost) = FC_PORTSPEED_10GBIT; fc_host_speed(shost) = FC_PORTSPEED_10GBIT;
break; break;
case DCEM_PORTSPEED_20G:
fc_host_speed(shost) = FC_PORTSPEED_20GBIT;
break;
case DCEM_PORTSPEED_25G: case DCEM_PORTSPEED_25G:
fc_host_speed(shost) = FC_PORTSPEED_25GBIT; fc_host_speed(shost) = FC_PORTSPEED_25GBIT;
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