Skip to content

Commit

Permalink
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 ce1dc50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ Julien Aube <julien_dpdk@jaube.fr>
Julien Castets <jcastets@scaleway.com>
Julien Courtat <julien.courtat@6wind.com>
Julien Cretin <julien.cretin@trust-in-soft.com>
Julien Hascoet <ju.hascoet@gmail.com>
Julien Massonneau <julien.massonneau@6wind.com>
Julien Meunier <julien.meunier@nokia.com> <julien.meunier@6wind.com>
Július Milan <jmilan.dev@gmail.com>
Expand Down
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 ce1dc50

Please sign in to comment.