[dpdk-dev] [PATCH] lib: include rte_memory.h for __rte_cache_aligned

2014-11-17 Thread Jia Yu
Thanks for reviewing this change. No error message was found without this patch. This patch follows a good coding practice to include the header files when it?s needed, rather than through some other header files. In the past, we found some data structure was not cache line aligned due to missing

[dpdk-dev] [PATCH] lib: include rte_memory.h for __rte_cache_aligned

2014-11-10 Thread Thomas Monjalon
2014-11-07 09:28, Jia Yu: > Include rte_memory.h for lib files that use __rte_cache_aligned > attribute. Please could you explain what was the error? As I suspect it's a fix, it would be clearer to start your title with "fix". Thanks -- Thomas

[dpdk-dev] [PATCH] lib: include rte_memory.h for __rte_cache_aligned

2014-11-07 Thread Jia Yu
Include rte_memory.h for lib files that use __rte_cache_aligned attribute. Signed-off-by: Jia Yu --- lib/librte_distributor/rte_distributor.c| 1 + lib/librte_eal/common/include/rte_malloc_heap.h | 1 + lib/librte_ip_frag/rte_ip_frag.h| 1 + lib/librte_malloc/malloc_elem.