crypto: qat - add num_rps sysfs attribute
authorCiunas Bennett <ciunas.bennett@intel.com>
Fri, 20 Oct 2023 13:49:31 +0000 (15:49 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Oct 2023 10:04:28 +0000 (18:04 +0800)
commit71fed09b49c168435fc28d57870007495475d946
tree906bfe7fecba7b9cf1d7474e8ed2ba480560547c
parentdbc8876dd873a6ac5e3191b419d2de5ca613165f
crypto: qat - add num_rps sysfs attribute

Add the attribute `num_rps` to the `qat` attribute group. This returns
the number of ring pairs that a single device has. This allows to know
the maximum value that can be set to the attribute `rp2svc`.

Signed-off-by: Ciunas Bennett <ciunas.bennett@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Damian Muszynski <damian.muszynski@intel.com>
Reviewed-by: Tero Kristo <tero.kristo@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Documentation/ABI/testing/sysfs-driver-qat
drivers/crypto/intel/qat/qat_common/adf_sysfs.c