numam-dpdk/lib/librte_port
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 mbuf: rename RTE_MBUF_SCATTER_GATHER into RTE_MBUF_REFCNT 2014-09-17 11:27:50 +02:00
rte_port_ethdev.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
rte_port_ethdev.h port: ethdev 2014-06-17 02:37:29 +02:00
rte_port_frag.c lib: fix cache alignment of structures 2014-12-11 01:42:02 +01:00
rte_port_frag.h port: IPv4 fragmentation 2014-06-17 03:34:09 +02:00
rte_port_ras.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
rte_port_ras.h port: IPv4 reassembly 2014-06-17 03:34:10 +02:00
rte_port_ring.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
rte_port_ring.h port: ring 2014-06-17 02:37:29 +02:00
rte_port_sched.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
rte_port_sched.h port: hierarchical scheduler 2014-06-17 03:34:10 +02:00
rte_port_source_sink.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
rte_port_source_sink.h port: source and sink 2014-06-17 03:34:10 +02:00
rte_port.h doc: apply one comment to all members of a group 2014-09-29 16:34:58 +02:00