linux/drivers/crypto
Bharat Bhushan 040791041b crypto: octeontx2 - By default allocate one CPT LF per CPT VF
There are limited number CPT LFs (example 64 LFs on cn10k) and
these LFs are allocated/attached to CPT VF on its creation.
cptpf sysfs parameter "kvf_limits" defines number of CPT LFs
per CPT VF. Default "kvf_limits" is initialized to zero and if
kvf_limits is zero then number of LF allocated are equal to
online cpus in system.

For example on 24 core system, 24 CPT LFs will be attached per VF.
That means no CPT LF available when creating more than 2 CPT VFs
on system which have total 64 LFs. Although VFs gets created but
no LF attached to it.

There seems no reason to default allocate as many LFs as many
online cpus in system. This patch initializes "kvf_limits" to
one to limit one LF allocated per CPT VF. "kvf_limits" can
be changed in range of 1 to number-of-online-cpus via sysfs.

Signed-off-by: Bharat Bhushan <bbhushan2@marvell.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-12-08 11:59:44 +08:00
..
allwinner crypto: sun8i-ss - use crypto_shash_tfm_digest() in sun8i_ss_hashkey() 2023-11-17 19:16:29 +08:00
amcc crypto: amcc/crypto4xx - Convert to platform remove callback returning void 2023-10-27 18:04:25 +08:00
amlogic crypto: amlogic-gxl-core - Convert to platform remove callback returning void 2023-10-27 18:04:25 +08:00
aspeed crypto: aspeed-hace - Convert to platform remove callback returning void 2023-10-27 18:04:25 +08:00
axis crypto: artpec6 - stop setting alignmask for ahashes 2023-10-27 18:04:28 +08:00
bcm crypto: bcm/cipher - Convert to platform remove callback returning void 2023-10-27 18:04:25 +08:00
caam crypto: caam/jr - Convert to platform remove callback returning void 2023-10-27 18:04:25 +08:00
cavium crypto: cavium/nitrox - refactor deprecated strncpy 2023-09-20 13:15:29 +08:00
ccp crypto: ccp - fix memleak in ccp_init_dm_workarea 2023-12-08 11:45:27 +08:00
ccree crypto: ccree - Silence gcc format-truncation false positive warnings 2023-11-17 19:16:28 +08:00
chelsio crypto: chelsio - stop using crypto_ahash::init 2023-10-27 18:04:29 +08:00
gemini crypto: gemini/sl3516-ce - Convert to platform remove callback returning void 2023-10-27 18:04:26 +08:00
hisilicon crypto: hisilicon/qm - add comments and remove redundant array element 2023-12-01 18:03:26 +08:00
inside-secure crypto: inside-secure/safexcel - Convert to platform remove callback returning void 2023-10-27 18:04:26 +08:00
intel crypto: qat - add NULL pointer check 2023-12-08 11:59:44 +08:00
marvell crypto: octeontx2 - By default allocate one CPT LF per CPT VF 2023-12-08 11:59:44 +08:00
nx crypto: nx - fix build warnings when DEBUG_FS is not enabled 2023-05-24 18:12:33 +08:00
qce crypto: qce - Convert to platform remove callback returning void 2023-10-27 18:04:26 +08:00
rockchip crypto: rockchip - remove unnecessary alignmask for ahashes 2023-10-27 18:04:29 +08:00
starfive crypto: starfive - Pad adata with zeroes 2023-12-01 18:03:26 +08:00
stm32 crypto: stm32 - remove unnecessary alignmask for ahashes 2023-10-27 18:04:29 +08:00
virtio crypto: virtio - Handle dataq logic with tasklet 2023-12-01 18:03:26 +08:00
vmx crypto: vmx - Improved AES/XTS performance of 6-way unrolling for ppc 2023-09-15 18:29:45 +08:00
xilinx crypto: xilinx/zynqmp-sha - Convert to platform remove callback returning void 2023-10-27 18:04:27 +08:00
atmel-aes-regs.h
atmel-aes.c crypto: atmel-aes - Convert to platform remove callback returning void 2023-10-27 18:04:25 +08:00
atmel-authenc.h crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
atmel-ecc.c crypto: drivers - Explicitly include correct DT includes 2023-08-23 11:04:23 +08:00
atmel-i2c.c This update includes the following changes: 2023-02-21 18:10:50 -08:00
atmel-i2c.h This update includes the following changes: 2023-02-21 18:10:50 -08:00
atmel-sha204a.c crypto: atmel - Switch i2c drivers back to use .probe() 2023-06-02 18:21:32 +08:00
atmel-sha-regs.h
atmel-sha.c crypto: atmel - remove unnecessary alignmask for ahashes 2023-10-27 18:04:28 +08:00
atmel-tdes-regs.h
atmel-tdes.c crypto: atmel-tdes - Convert to platform remove callback returning void 2023-10-27 18:04:25 +08:00
exynos-rng.c crypto: exynos-rng - Convert to platform remove callback returning void 2023-10-27 18:04:26 +08:00
geode-aes.c crypto: geode - use DEFINE_SPINLOCK() for spinlock 2021-04-16 21:16:31 +10:00
geode-aes.h crypto: geode-aes - convert to skcipher API and make thread-safe 2019-10-23 19:46:56 +11:00
hifn_795x.c crypto: hifn_795x - Silence gcc format-truncation false positive warnings 2023-10-20 13:39:26 +08:00
img-hash.c crypto: img-hash - Convert to platform remove callback returning void 2023-10-27 18:04:26 +08:00
Kconfig crypto: qcom-rng - Add missing dependency on hw_random 2023-10-20 13:39:26 +08:00
Makefile crypto: starfive - Add crypto engine support 2023-05-19 16:46:22 +08:00
mxs-dcp.c crypto: mxs-dcp - remove unnecessary alignmask for ahashes 2023-10-27 18:04:28 +08:00
n2_asm.S
n2_core.c crypto: n2 - Silence gcc format-truncation false positive warnings 2023-11-17 19:16:28 +08:00
n2_core.h
omap-aes-gcm.c crypto: omap - Use new crypto_engine_op interface 2023-08-18 17:01:11 +08:00
omap-aes.c crypto: omap-aes - Convert to platform remove callback returning void 2023-10-27 18:04:26 +08:00
omap-aes.h crypto: omap - Use new crypto_engine_op interface 2023-08-18 17:01:11 +08:00
omap-crypto.c crypto: omap - Avoid redundant copy when using truncated sg list 2021-08-21 15:44:53 +08:00
omap-crypto.h
omap-des.c crypto: omap-des - Convert to platform remove callback returning void 2023-10-27 18:04:26 +08:00
omap-sham.c crypto: omap-sham - stop setting alignmask for ahashes 2023-10-27 18:04:29 +08:00
padlock-aes.c crypto: algapi - Remove skbuff.h inclusion 2020-08-20 14:04:28 +10:00
padlock-sha.c crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
qcom-rng.c crypto: qcom-rng - Convert to platform remove callback returning void 2023-10-27 18:04:26 +08:00
s5p-sss.c crypto: s5p-sss - remove unnecessary alignmask for ahashes 2023-10-27 18:04:28 +08:00
sa2ul.c crypto: sa2ul - Return crypto_aead_setkey to transfer the error 2023-12-01 18:03:26 +08:00
sa2ul.h crypto: sa2ul - change unsafe data size limit to 255 bytes 2023-05-19 16:45:43 +08:00
sahara.c crypto: sahara - Convert to platform remove callback returning void 2023-10-27 18:04:27 +08:00
talitos.c crypto: talitos - stop using crypto_ahash::init 2023-10-27 18:04:29 +08:00
talitos.h crypto: talitos - Replace zero-length arrays with DECLARE_FLEX_ARRAY() helper 2022-10-21 19:05:24 +08:00