mempool: fix anonymous populate
[dpdk.git] / app / test-compress-perf / comp_perf_options.h
index 5a32ed3..2c26511 100644 (file)
@@ -7,11 +7,11 @@
 
 #define MAX_LIST               32
 #define MIN_COMPRESSED_BUF_SIZE 8
-#define EXPANSE_RATIO 1.05
+#define EXPANSE_RATIO 1.1
 #define MAX_MBUF_DATA_SIZE (UINT16_MAX - RTE_PKTMBUF_HEADROOM)
 #define MAX_SEG_SIZE ((int)(MAX_MBUF_DATA_SIZE / EXPANSE_RATIO))
 
-extern const char *cperf_test_type_strs[];
+extern const char *comp_perf_test_type_strs[];
 
 /* Cleanup state machine */
 enum cleanup_st {
@@ -56,12 +56,14 @@ struct comp_test_data {
        uint32_t pool_sz;
        uint32_t num_iter;
        uint16_t max_sgl_segs;
+       uint32_t total_segs;
 
        enum rte_comp_huffman huffman_enc;
        enum comp_operation test_op;
        int window_sz;
        struct range_list level_lst;
        uint8_t level;
+       int use_external_mbufs;
 
        double ratio;
        enum cleanup_st cleanup;