3a52e64742
Include rte_memory.h for lib files that use __rte_cache_aligned attribute. Consider the following code: struct per_core_foo { ... } __rte_cache_aligned; struct global_foo { struct per_core_foo foo[RTE_MAX_CORE]; }; If __rte_cache_aligned is not defined (rte_memory.h is not included), the code compiles but the structure is not aligned... it defines the structure and creates a global variable called __rte_cache_aligned. And this can lead to really bad things if this code is in a .h that is included by files that may or may not include rte_memory.h Signed-off-by: Jia Yu <jyu@vmware.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com> |
||
---|---|---|
.. | ||
Makefile | ||
rte_lru.h | ||
rte_table_acl.c | ||
rte_table_acl.h | ||
rte_table_array.c | ||
rte_table_array.h | ||
rte_table_hash_ext.c | ||
rte_table_hash_key8.c | ||
rte_table_hash_key16.c | ||
rte_table_hash_key32.c | ||
rte_table_hash_lru.c | ||
rte_table_hash.h | ||
rte_table_lpm_ipv6.c | ||
rte_table_lpm_ipv6.h | ||
rte_table_lpm.c | ||
rte_table_lpm.h | ||
rte_table_stub.c | ||
rte_table_stub.h | ||
rte_table.h |