tile: fix build
[dpdk.git] / app / test / test_hash_scaling.c
index 39602cb..46c48e5 100644 (file)
@@ -31,6 +31,8 @@
  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include <stdio.h>
+
 #include <rte_cycles.h>
 #include <rte_hash.h>
 #include <rte_hash_crc.h>
@@ -133,6 +135,7 @@ test_hash_scaling(int locking_mode)
                .hash_func = rte_hash_crc,
                .hash_func_init_val = 0,
                .socket_id = rte_socket_id(),
+               .extra_flag = RTE_HASH_EXTRA_FLAGS_TRANS_MEM_SUPPORT
        };
        struct rte_hash *handle;
        char name[RTE_HASH_NAMESIZE];
@@ -214,9 +217,4 @@ test_hash_scaling_main(void)
        return r;
 }
 
-
-static struct test_command hash_scaling_cmd = {
-       .command = "hash_scaling_autotest",
-       .callback = test_hash_scaling_main,
-};
-REGISTER_TEST_COMMAND(hash_scaling_cmd);
+REGISTER_TEST_COMMAND(hash_scaling_autotest, test_hash_scaling_main);