git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f0a592
)
common/cpt: fix KASUMI input length
author
Anoob Joseph
<anoobj@marvell.com>
Thu, 11 Nov 2021 11:48:42 +0000
(17:18 +0530)
committer
Akhil Goyal
<gakhil@marvell.com>
Tue, 16 Nov 2021 06:38:07 +0000
(07:38 +0100)
Fix kasumi input len calculation to consider encr_offset.
Fixes:
da39e3eccd3d
("common/cpt: support KASUMI")
Cc: stable@dpdk.org
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
drivers/common/cpt/cpt_ucode.h
patch
|
blob
|
history
diff --git
a/drivers/common/cpt/cpt_ucode.h
b/drivers/common/cpt/cpt_ucode.h
index
006411c
..
e015cf6
100644
(file)
--- a/
drivers/common/cpt/cpt_ucode.h
+++ b/
drivers/common/cpt/cpt_ucode.h
@@
-2311,7
+2311,7
@@
cpt_kasumi_dec_prep(uint64_t d_offs,
/* consider iv len */
encr_offset += iv_len;
- inputlen =
iv_len
+ (RTE_ALIGN(encr_data_len, 8) / 8);
+ inputlen =
encr_offset
+ (RTE_ALIGN(encr_data_len, 8) / 8);
outputlen = inputlen;
/* save space for offset ctrl & iv */