numam-dpdk/lib/librte_table
Jia Yu 3a52e64742 lib: fix cache alignment of structures
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>
2014-12-11 01:42:02 +01:00
..
Makefile table: stub 2014-06-17 03:34:11 +02:00
rte_lru.h table: hash 2014-06-17 03:34:10 +02:00
rte_table_acl.c lib: fix cache alignment of structures 2014-12-11 01:42:02 +01:00
rte_table_acl.h table: ACL 2014-06-17 03:34:10 +02:00
rte_table_array.c lib: fix cache alignment of structures 2014-12-11 01:42:02 +01:00
rte_table_array.h table: array 2014-06-17 03:34:10 +02:00
rte_table_hash_ext.c lib: fix cache alignment of structures 2014-12-11 01:42:02 +01:00
rte_table_hash_key8.c lib: fix cache alignment of structures 2014-12-11 01:42:02 +01:00
rte_table_hash_key16.c lib: fix cache alignment of structures 2014-12-11 01:42:02 +01:00
rte_table_hash_key32.c lib: fix cache alignment of structures 2014-12-11 01:42:02 +01:00
rte_table_hash_lru.c lib: fix cache alignment of structures 2014-12-11 01:42:02 +01:00
rte_table_hash.h table: hash 2014-06-17 03:34:10 +02:00
rte_table_lpm_ipv6.c lib: fix cache alignment of structures 2014-12-11 01:42:02 +01:00
rte_table_lpm_ipv6.h table: LPM IPv6 2014-06-17 03:34:10 +02:00
rte_table_lpm.c lib: fix cache alignment of structures 2014-12-11 01:42:02 +01:00
rte_table_lpm.h table: LPM IPv4 2014-06-17 03:34:10 +02:00
rte_table_stub.c table: stub 2014-06-17 03:34:11 +02:00
rte_table_stub.h table: stub 2014-06-17 03:34:11 +02:00
rte_table.h table: new packet framework API 2014-06-17 03:34:10 +02:00