examples/l2fwd-crypto: support cipher multiple data-unit
authorMatan Azrad <matan@nvidia.com>
Wed, 28 Jul 2021 07:56:42 +0000 (10:56 +0300)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 30 Jul 2021 19:08:19 +0000 (21:08 +0200)
commitdcf384b4ffe057f5d49ebececa3e1a12ab260acd
tree7f5e3686d96c19efaed0e24a25b64c7bfb62fa79
parent12b650efd49d8b932a7717be1cafd13d9040ea3e
examples/l2fwd-crypto: support cipher multiple data-unit

The support for multiple data-units includes the next:
- Add a new command-line argument to provide the data-unit length.
- Set the length in the cipher xform.
- Validate device capabilities for this feature.
- Pad the AES-XTS operation length to be aligned to the defined data-unit.

Signed-off-by: Matan Azrad <matan@nvidia.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
doc/guides/sample_app_ug/l2_forward_crypto.rst
examples/l2fwd-crypto/main.c