Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Satish Kharat <satishkh@cisco.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Satish Kharat and committed by
Martin K. Petersen
c01461a6 cd464d83

+9 -1
+4
drivers/scsi/fnic/fnic_fcs.c
··· 70 70 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_10GBIT; 71 71 fnic->lport->link_supported_speeds = FC_PORTSPEED_10GBIT; 72 72 break; 73 + case DCEM_PORTSPEED_20G: 74 + fc_host_speed(fnic->lport->host) = FC_PORTSPEED_20GBIT; 75 + fnic->lport->link_supported_speeds = FC_PORTSPEED_20GBIT; 76 + break; 73 77 case DCEM_PORTSPEED_25G: 74 78 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_25GBIT; 75 79 fnic->lport->link_supported_speeds = FC_PORTSPEED_25GBIT;
+2 -1
drivers/scsi/fnic/fnic_io.h
··· 70 70 DCEM_PORTSPEED_NONE = 0, 71 71 DCEM_PORTSPEED_1G = 1000, 72 72 DCEM_PORTSPEED_10G = 10000, 73 + DCEM_PORTSPEED_20G = 20000, 74 + DCEM_PORTSPEED_25G = 25000, 73 75 DCEM_PORTSPEED_40G = 40000, 74 76 DCEM_PORTSPEED_4x10G = 41000, 75 - DCEM_PORTSPEED_25G = 25000, 76 77 DCEM_PORTSPEED_100G = 100000, 77 78 }; 78 79 #endif /* _FNIC_IO_H_ */
+3
drivers/scsi/fnic/fnic_main.c
··· 178 178 case DCEM_PORTSPEED_10G: 179 179 fc_host_speed(shost) = FC_PORTSPEED_10GBIT; 180 180 break; 181 + case DCEM_PORTSPEED_20G: 182 + fc_host_speed(shost) = FC_PORTSPEED_20GBIT; 183 + break; 181 184 case DCEM_PORTSPEED_25G: 182 185 fc_host_speed(shost) = FC_PORTSPEED_25GBIT; 183 186 break;