diff options
author | 2025-01-23 10:34:52 +0530 | |
---|---|---|
committer | 2025-04-01 14:21:00 +0000 | |
commit | 803eac3efdbcfb0405f059e3485de35673e27411 (patch) | |
tree | 96be862ed384fd67f796fdb70822732427708360 /src/plugins/dev_octeon/crypto.c | |
parent | 59c530f3d55ba4a1bec787fed1287fa276b36103 (diff) |
octeon: set cpt descriptor count to 16k
Set the number of CPT descriptors to 16384.
Add an option to configure cpt descriptor count
from startup conf.
Type: feature
Signed-off-by: Nithinsen Kaithakadan <nkaithakadan@marvell.com>
Change-Id: Id1ffbe69ad7d457dbd0b11494be1dc0d4a28c324
Diffstat (limited to 'src/plugins/dev_octeon/crypto.c')
-rw-r--r-- | src/plugins/dev_octeon/crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/dev_octeon/crypto.c b/src/plugins/dev_octeon/crypto.c index cc0b07329a3..52c796089d5 100644 --- a/src/plugins/dev_octeon/crypto.c +++ b/src/plugins/dev_octeon/crypto.c @@ -1940,7 +1940,7 @@ oct_init_crypto_engine_handlers (vlib_main_t *vm, vnet_dev_t *dev) } int -oct_conf_sw_queue (vlib_main_t *vm, vnet_dev_t *dev) +oct_conf_sw_queue (vlib_main_t *vm, vnet_dev_t *dev, oct_crypto_dev_t *ocd) { oct_crypto_main_t *ocm = &oct_crypto_main; vlib_thread_main_t *tm = vlib_get_thread_main (); @@ -1961,7 +1961,7 @@ oct_conf_sw_queue (vlib_main_t *vm, vnet_dev_t *dev) * Each pending queue will get number of cpt desc / number of cores. * And that desc count is shared across inflight entries. */ - n_inflight_req = (OCT_CPT_LF_MAX_NB_DESC / tm->n_vlib_mains); + n_inflight_req = (ocd->n_desc / tm->n_vlib_mains); for (i = 0; i < tm->n_vlib_mains; ++i) { |