ethdev: rename physical port item in flow API
[dpdk.git] / app / test-bbdev / test_bbdev_perf.c
index f7b51ca..00f3b08 100644 (file)
@@ -1557,9 +1557,11 @@ throughput_test(struct active_device *ad,
                        throughput_function = throughput_intr_lcore_enc;
 
                /* Dequeue interrupt callback registration */
-               rte_bbdev_callback_register(ad->dev_id, RTE_BBDEV_EVENT_DEQUEUE,
-                               dequeue_event_callback,
+               ret = rte_bbdev_callback_register(ad->dev_id,
+                               RTE_BBDEV_EVENT_DEQUEUE, dequeue_event_callback,
                                &t_params);
+               if (ret < 0)
+                       return ret;
        } else {
                if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC)
                        throughput_function = throughput_pmd_lcore_dec;
@@ -1805,7 +1807,7 @@ operation_latency_test(struct active_device *ad,
                                op_params->ref_enc_op, ad->dev_id, queue_id,
                                num_to_process, burst_sz, &total_time);
 
-       if (iter < 0)
+       if (iter <= 0)
                return TEST_FAILED;
 
        printf("\toperation avg. latency: %lg cycles, %lg us\n",
@@ -1955,7 +1957,7 @@ offload_latency_test(struct active_device *ad,
                                num_to_process, burst_sz, &enq_total_time,
                                &deq_total_time);
 
-       if (iter < 0)
+       if (iter <= 0)
                return TEST_FAILED;
 
        printf("\tenq offload avg. latency: %lg cycles, %lg us\n",
@@ -2047,7 +2049,7 @@ offload_latency_empty_q_test(struct active_device *ad,
                iter = offload_latency_empty_q_test_enc(ad->dev_id, queue_id,
                                num_to_process, burst_sz, &deq_total_time);
 
-       if (iter < 0)
+       if (iter <= 0)
                return TEST_FAILED;
 
        printf("\tempty deq offload avg. latency: %lg cycles, %lg us\n",