[PATCH] crypto/cnxk: update number of max capabilities
Akhil Goyal
gakhil at marvell.com
Thu Mar 16 20:01:56 CET 2023
> > Subject: [PATCH] crypto/cnxk: update number of max capabilities
> >
> > To ensure that the end marker can fit into the capabilities array, the max
> > number of capabilities has been incremented.
> > Additionally, throw an error if max length is reached. It's critical because
> > `rte_cryptodev_capabilities` in dev_info relies on the end marker.
> > Without it, all capabilities scans will read memory outside of the array.
> >
> > Signed-off-by: Volodymyr Fialko <vfialko at marvell.com>
> > ---
> > drivers/common/cnxk/roc_platform.h | 1 +
> > drivers/crypto/cnxk/cnxk_cryptodev.h | 2 +-
> > .../crypto/cnxk/cnxk_cryptodev_capabilities.c | 18 +++++-------------
> > 3 files changed, 7 insertions(+), 14 deletions(-)
>
> Acked-by: Anoob Joseph <anoobj at marvell.com>
Applied to dpdk-next-crypto
Thanks.
More information about the dev
mailing list