Skip to content

Commit

Permalink
driver: crypto: scheduler: fix session size computation
Browse files Browse the repository at this point in the history
The crypto scheduler session size computation was taking
into account only the worker session sizes and not its own.

Fixes: e2af4e4 ("crypto/scheduler: support DOCSIS security protocol")
Cc: stable@dpdk.org

Signed-off-by: Julien Hascoet <ju.hascoet@gmail.com>
Acked-by: Kai Ji <kai.ji@intel.com>
  • Loading branch information
julienhascoet authored and Akhil Goyal committed Oct 9, 2024
1 parent 917b7c7 commit c5a1644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/scheduler/scheduler_pmd_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ scheduler_session_size_get(struct scheduler_ctx *sched_ctx,
uint8_t session_type)
{
uint8_t i = 0;
uint32_t max_priv_sess_size = 0;
uint32_t max_priv_sess_size = sizeof(struct scheduler_session_ctx);

/* Check what is the maximum private session size for all workers */
for (i = 0; i < sched_ctx->nb_workers; i++) {
Expand Down

0 comments on commit c5a1644

Please sign in to comment.