* Copyright(c) 2010-2016 Intel Corporation
*/
+#ifndef RTE_EXEC_ENV_WINDOWS
+
#include <string.h>
#include <rte_byteorder.h>
#include <rte_table_lpm_ipv6.h>
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); \
.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);
return 0;
}
+#endif /* !RTE_EXEC_ENV_WINDOWS */