]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] zfcp: Adapt to new FC_PORTSPEED semantics
authorSteffen Maier <maier@linux.vnet.ibm.com>
Tue, 4 Sep 2012 13:23:29 +0000 (15:23 +0200)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 24 Sep 2012 08:11:01 +0000 (12:11 +0400)
commiteb51df212f227aa434543b03649da00fc9c00370
treed589dd52e5637d452e419fec4f707b0430e04843
parentf167bb2f82e5d63faf20c884d43504fd50b547a2
[SCSI] zfcp: Adapt to new FC_PORTSPEED semantics

Commit 2b8cc1f81d104e845120cb18c719ce6cc943071c
"[SCSI] scsi_transport_fc: Getting FC Port Speed in sync with FC-GS"
changed the semantics of FC_PORTSPEED defines to
FDMI port attributes of FC-HBA/SM-HBA
which is different from the previous bit reversed
Report Port Speed Capabilities (RPSC) ELS of FC-GS/FC-LS.

Zfcp showed "10 Gbit" instead of "4 Gbit" for supported_speeds.
It now uses explicit bit conversion as the other LLDs already
do, in order to be independent of the kernel bit semantics.
See also http://marc.info/?l=linux-scsi&m=134452926830730&w=2

Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com>
Reviewed-by: Martin Peschke <mpeschke@linux.vnet.ibm.com>
Cc: <stable@vger.kernel.org> #3.4+
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/s390/scsi/zfcp_fsf.c