Skip to content

Commit ce1dc50

Browse files
julienhascoetAkhil Goyal
authored andcommitted
crypto/scheduler: fix session size computation
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: [email protected] Signed-off-by: Julien Hascoet <[email protected]> Acked-by: Kai Ji <[email protected]>
1 parent 917b7c7 commit ce1dc50

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ Julien Aube <[email protected]>
734734
Julien Castets <[email protected]>
735735
Julien Courtat <[email protected]>
736736
Julien Cretin <[email protected]>
737+
Julien Hascoet <[email protected]>
737738
Julien Massonneau <[email protected]>
738739
739740
Július Milan <[email protected]>

drivers/crypto/scheduler/scheduler_pmd_ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ scheduler_session_size_get(struct scheduler_ctx *sched_ctx,
185185
uint8_t session_type)
186186
{
187187
uint8_t i = 0;
188-
uint32_t max_priv_sess_size = 0;
188+
uint32_t max_priv_sess_size = sizeof(struct scheduler_session_ctx);
189189

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

0 commit comments

Comments
 (0)