Commit a9277e7783651d4e0a849f7988340b1c1cf748a4

Authored by Neerav Parikh
Committed by James Bottomley
1 parent bb8ef587a7

[SCSI] scsi_transport_fc: Getting FC Port Speed in sync with FC-GS

The values for the 4G and 10G speeds are not in sync with
definitions in SM-HBA/FC-GS-x/etc.
This patch brings them in sync to these specifications.

The values are converted to strings when represented via
sysfs attribute, hence that should cover for user space
apps as they may not see any change.

Signed-off-by: Neerav Parikh <neerav.parikh@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Acked-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

include/scsi/scsi_transport_fc.h
... ... @@ -126,8 +126,8 @@
126 126 incapable of reporting */
127 127 #define FC_PORTSPEED_1GBIT 1
128 128 #define FC_PORTSPEED_2GBIT 2
129   -#define FC_PORTSPEED_4GBIT 4
130   -#define FC_PORTSPEED_10GBIT 8
  129 +#define FC_PORTSPEED_10GBIT 4
  130 +#define FC_PORTSPEED_4GBIT 8
131 131 #define FC_PORTSPEED_8GBIT 0x10
132 132 #define FC_PORTSPEED_16GBIT 0x20
133 133 #define FC_PORTSPEED_NOT_NEGOTIATED (1 << 15) /* Speed not established */