linux/drivers/crypto/marvell
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
..
cesa crypto: marvell/cesa - Silence gcc format-truncation false positive warnings 2023-11-17 19:16:28 +08:00
octeontx crypto: octeontx - Use request_complete helpers 2023-02-13 18:34:49 +08:00
octeontx2 crypto: octeontx2 - By default allocate one CPT LF per CPT VF 2023-12-08 11:59:44 +08:00
Kconfig crypto: octeontx2 - select CONFIG_NET_DEVLINK 2022-01-31 11:21:45 +11:00
Makefile crypto: marvell - add Marvell OcteonTX2 CPT PF driver 2021-01-22 14:58:02 +11:00