diff options
| author | Tyrel Datwyler <[email protected]> | 2020-11-17 19:11:01 -0600 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-11-19 22:09:11 -0500 |
| commit | a318c2b71ccee720134e9a43b9b1afbea50f0578 (patch) | |
| tree | 28524e25e64efd445218640c628c1f42cc1dd000 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | c16b8a6d8af15364e562ed4d61b05fb826151712 (diff) | |
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/[email protected]
Acked-by: Brian King <[email protected]>
Signed-off-by: Tyrel Datwyler <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions