From: Sergio Gonzalez Monroy Date: Thu, 29 Sep 2016 15:44:12 +0000 (+0100) Subject: examples/ipsec-secgw: add cryptodev queue size constant X-Git-Tag: spdx-start~5700 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e715ca2892f0003c0a88401cf61fb054311cf4ce;p=dpdk.git examples/ipsec-secgw: add cryptodev queue size constant Introduce a specific cryptodev queue size macro. Signed-off-by: Sergio Gonzalez Monroy Acked-by: Pablo de Lara --- diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index 9eee96fbcf..5a4c9b71b1 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -82,6 +82,7 @@ #define NB_MBUF (32000) +#define CDEV_QUEUE_DESC 2048 #define CDEV_MAP_ENTRIES 1024 #define CDEV_MP_NB_OBJS 2048 #define CDEV_MP_CACHE_SZ 64 @@ -1272,7 +1273,7 @@ cryptodevs_init(void) rte_panic("Failed to initialize crypodev %u\n", cdev_id); - qp_conf.nb_descriptors = CDEV_MP_NB_OBJS; + qp_conf.nb_descriptors = CDEV_QUEUE_DESC; for (qp = 0; qp < dev_conf.nb_queue_pairs; qp++) if (rte_cryptodev_queue_pair_setup(cdev_id, qp, &qp_conf, dev_conf.socket_id))