X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=app%2Ftest%2Ftest_table_tables.c;h=d5c5a426bc7cfc3f334d18e2f482fd0b57a165f3;hb=42902e810d34038754535cd0883e3621d16f34ae;hp=21c4086c2321f8603c83ca6faf16dd9f7a0dbb16;hpb=168fd260d5c90e44a869676a112521f229b70044;p=dpdk.git diff --git a/app/test/test_table_tables.c b/app/test/test_table_tables.c index 21c4086c23..d5c5a426bc 100644 --- a/app/test/test_table_tables.c +++ b/app/test/test_table_tables.c @@ -2,6 +2,8 @@ * Copyright(c) 2010-2016 Intel Corporation */ +#ifndef RTE_EXEC_ENV_WINDOWS + #include #include #include @@ -28,7 +30,8 @@ table_test table_tests[] = { APP_METADATA_OFFSET(0)); \ key = RTE_MBUF_METADATA_UINT8_PTR(mbuf, \ APP_METADATA_OFFSET(32)); \ - memset(key, 0, 32); \ + if (mbuf->priv_size + mbuf->buf_len >= 64) \ + memset(key, 0, 32); \ k32 = (uint32_t *) key; \ k32[0] = (value); \ *signature = pipeline_test_hash(key, NULL, 0, 0); \ @@ -911,7 +914,7 @@ test_table_hash_cuckoo(void) .n_keys = 1 << 16, .n_buckets = 1 << 16, .f_hash = pipeline_test_hash_cuckoo, - .seed = 0, + .seed = 0, }; table = rte_table_hash_cuckoo_ops.f_create(NULL, 0, entry_size); @@ -1052,3 +1055,4 @@ test_table_hash_cuckoo(void) return 0; } +#endif /* !RTE_EXEC_ENV_WINDOWS */