]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_hash_perf.c
mbuf: add a function to linearize a packet
[dpdk.git] / app / test / test_hash_perf.c
index a87fc80d0e4ee984c256d0fd1219b371076d9c2b..c0051b20fbe2c70d21642ef89c5a237e5ac096e6 100644 (file)
@@ -140,7 +140,7 @@ shuffle_input_keys(unsigned table_index)
 {
        unsigned i;
        uint32_t swap_idx;
-       uint8_t temp_key[RTE_HASH_KEY_LENGTH_MAX];
+       uint8_t temp_key[MAX_KEYSIZE];
        hash_sig_t temp_signature;
        int32_t temp_position;
 
@@ -656,8 +656,4 @@ test_hash_perf(void)
        return 0;
 }
 
-static struct test_command hash_perf_cmd = {
-               .command = "hash_perf_autotest",
-               .callback = test_hash_perf,
-};
-REGISTER_TEST_COMMAND(hash_perf_cmd);
+REGISTER_TEST_COMMAND(hash_perf_autotest, test_hash_perf);