From c474feea962bcde3b5eece0ff2be8d3fd8019093 Mon Sep 17 00:00:00 2001 From: Sachin Saxena Date: Fri, 22 Jun 2018 12:20:20 +0530 Subject: dpdk: Enhancement to call crypto start api at initialization - Some crypto devices rely on rte_cryptodev_start() API to be called by application to enable a pre-configured H/W Crypto device. - NXP dpaa2 is one of the example. Change-Id: I2ad8ca0060604fb4e0541161e91bdebc6642f4da Signed-off-by: Sachin Saxena --- src/plugins/dpdk/ipsec/ipsec.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/dpdk/ipsec/ipsec.c b/src/plugins/dpdk/ipsec/ipsec.c index 731613b009c..b2d8611cc9c 100644 --- a/src/plugins/dpdk/ipsec/ipsec.c +++ b/src/plugins/dpdk/ipsec/ipsec.c @@ -652,6 +652,10 @@ crypto_dev_conf (u8 dev, u16 n_qp, u8 numa) return clib_error_return (0, error_str, dev, qp); } + error_str = "failed to start crypto device %u"; + if (rte_cryptodev_start (dev)) + return clib_error_return (0, error_str, dev); + return 0; } -- cgit 1.2.3-korg