aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTyrel Datwyler <tyreld@linux.ibm.com>2020-11-17 19:11:01 -0600
committerMartin K. Petersen <martin.petersen@oracle.com>2020-11-19 22:09:11 -0500
commita318c2b71ccee720134e9a43b9b1afbea50f0578 (patch)
tree28524e25e64efd445218640c628c1f42cc1dd000 /tools/perf/scripts/python
parentscsi: ibmvfc: Add new fields for version 2 of several MADs (diff)
downloadlinux-a318c2b71ccee720134e9a43b9b1afbea50f0578.tar.gz
linux-a318c2b71ccee720134e9a43b9b1afbea50f0578.zip
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions