examples/l2fwd-crypto: use cryptodev algorithm parser
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 27 Feb 2017 14:38:46 +0000 (14:38 +0000)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 5 Apr 2017 22:17:44 +0000 (00:17 +0200)
commit4790f99d2d317be5aa45ab38581f15fd104d4f01
tree99a5fd82c8f4612aca08482031be417badb82370
parent66be27121c537f8f09b950159345552a71b17f85
examples/l2fwd-crypto: use cryptodev algorithm parser

L2fwd-crypto app was creating an array of strings for the
supported algorithms, which was different from the strings
that are now in cryptodev.

Use the new API in cryptodev to parse the string from the user,
to get the algorithm enum, instead, so it is not necessary to add
a new supported algorithm in the cryptodev library and this app.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
doc/guides/sample_app_ug/l2_forward_crypto.rst
examples/l2fwd-crypto/main.c