app/test: cleanup unnecessary crypto ring size setup
[dpdk.git] / app / test / test_cryptodev.c
index 7ff5673..63317bb 100644 (file)
@@ -362,13 +362,6 @@ testsuite_setup(void)
 
        rte_cryptodev_info_get(dev_id, &info);
 
-       /*
-        * Since we can't free and re-allocate queue memory always set
-        * the queues on this device up to max size first so enough
-        * memory is allocated for any later re-configures needed by
-        * other tests
-        */
-
        ts_params->conf.nb_queue_pairs = info.max_nb_queue_pairs;
        ts_params->conf.socket_id = SOCKET_ID_ANY;
        ts_params->conf.session_mp.nb_objs = info.sym.max_nb_sessions;
@@ -378,7 +371,7 @@ testsuite_setup(void)
                        "Failed to configure cryptodev %u with %u qps",
                        dev_id, ts_params->conf.nb_queue_pairs);
 
-       ts_params->qp_conf.nb_descriptors = MAX_NUM_OPS_INFLIGHT;
+       ts_params->qp_conf.nb_descriptors = DEFAULT_NUM_OPS_INFLIGHT;
 
        for (qp_id = 0; qp_id < info.max_nb_queue_pairs; qp_id++) {
                TEST_ASSERT_SUCCESS(rte_cryptodev_queue_pair_setup(
@@ -429,12 +422,6 @@ ut_setup(void)
                        "Failed to configure cryptodev %u",
                        ts_params->valid_devs[0]);
 
-       /*
-        * Now reconfigure queues to size we actually want to use in this
-        * test suite.
-        */
-       ts_params->qp_conf.nb_descriptors = DEFAULT_NUM_OPS_INFLIGHT;
-
        for (qp_id = 0; qp_id < ts_params->conf.nb_queue_pairs ; qp_id++) {
                TEST_ASSERT_SUCCESS(rte_cryptodev_queue_pair_setup(
                        ts_params->valid_devs[0], qp_id,