]> 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)
commit59e85876da285e726378fe8c7ed9b5c9a44a3ce9
treed589dd52e5637d452e419fec4f707b0430e04843
parent5f54becdad575e7aac50479ee8e271c4e87dbddc
[SCSI] zfcp: Adapt to new FC_PORTSPEED semantics

Commit b5cd577cdad8a676eecf8de77c918ea07678c07d
"[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