Tyrel Datwyler a318c2b71c scsi: ibmvfc: Add helper for testing capability flags
Testing the NPIV Login response capabilities is a long winded process of
dereferencing the vhost->login_buf->resp.capabilities field, then byte
swapping that value to host endian, and performing the bitwise test.
Currently we only ever check this in ibmvfc_cancel_all(), but follow-up
patches will need to regularly check for targetWWPN and channelization
support.

Add a helper to simplify checking various VIOS capabilities, namely
ibmvfc_check_caps().

Link: https://lore.kernel.org/r/20201118011104.296999-4-tyreld@linux.ibm.com
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-11-19 22:09:11 -05:00
..
2020-10-14 15:15:35 -07:00
2020-10-23 16:19:02 -07:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2020-10-16 12:21:15 -07:00
2020-03-11 23:07:59 -04:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2019-03-02 11:39:54 -08:00
2020-10-23 16:19:02 -07:00
2019-11-12 22:21:35 -05:00
2020-02-24 14:54:25 -05:00
2020-03-11 23:07:59 -04:00
2020-10-07 21:48:28 -04:00
2019-01-08 21:58:35 -05:00
2020-09-02 22:49:06 -04:00
2020-09-02 22:49:06 -04:00
2020-08-23 17:36:59 -05:00
2020-10-26 18:23:24 -04:00
2018-11-06 21:31:28 -05:00
2020-07-24 22:09:55 -04:00
2020-10-14 15:15:35 -07:00
2020-10-26 18:23:24 -04:00
2020-10-23 16:19:02 -07:00
2020-09-15 21:31:27 -04:00
2020-09-15 17:34:18 -04:00
2020-08-23 17:36:59 -05:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2020-08-06 16:50:07 -07:00
2020-06-19 23:06:43 -04:00
2020-10-23 16:19:02 -07:00
2020-10-14 15:15:35 -07:00
2019-07-11 15:14:01 -07:00
2020-10-23 16:19:02 -07:00
2020-02-24 15:01:57 -05:00
2020-10-26 18:23:24 -04:00
2020-10-14 15:15:35 -07:00
2019-07-11 15:14:01 -07:00