examples/ipsec-secgw: add cryptodev mask option
authorAkhil Goyal <akhil.goyal@nxp.com>
Thu, 14 Dec 2017 06:52:02 +0000 (12:22 +0530)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Sat, 20 Jan 2018 15:10:20 +0000 (16:10 +0100)
commit2c68fe791538e86b443fd5d7861e679bfcb955af
tree711b2dd3c391cabf737ec4cfde208564dc7347eb
parent0ccfd14bc10df18c6437afe23761794d9b20e0a1
examples/ipsec-secgw: add cryptodev mask option

Previously, ipsec-secgw application did not give user the
flexibility to decide which crypto device(s) will be used.

In this patch, a new cryptodev_mask option is added to the
application. Same as portmask, the cryptodev_mask avails the
user to mask out the unwanted crypto devices in the system.

This patch is similar to the support added in l2fwd-crypto
(d2797f51cc63: examples/l2fwd-crypto: add cryptodev mask option)

Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
examples/ipsec-secgw/ipsec-secgw.c