summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorHaren Myneni <haren@linux.ibm.com>2021-06-17 13:39:08 -0700
committerMichael Ellerman <mpe@ellerman.id.au>2021-06-20 21:58:58 +1000
commit8c099490fd2bd3b012b3b6d0babbba3b90e69b55 (patch)
tree6ea6840a449123bb6b9335176e5f6b07ca2355de /block
parentb4ba22114c78de48fda3818f569f75e97d58c719 (diff)
crypto/nx: Add sysfs interface to export NX capabilities
Export NX-GZIP capabilities to usrespace in sysfs /sys/devices/vio/ibm,compression-v1/nx_gzip_caps directory. These are queried by userspace accelerator libraries to set minimum length heuristics and maximum limits on request sizes. NX-GZIP capabilities: min_compress_len /*Recommended minimum compress length in bytes*/ min_decompress_len /*Recommended minimum decompress length in bytes*/ req_max_processed_len /* Maximum number of bytes processed in one request */ NX will return RMA_Reject if the request buffer size is greater than req_max_processed_len. Signed-off-by: Haren Myneni <haren@linux.ibm.com> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/510da86abbd904878d5f13d74aba72603c37d783.camel@linux.ibm.com
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions