[dpdk-dev] [PATCH] Fix KNI compiling issue on IBM Power
Thomas Monjalon
thomas.monjalon at 6wind.com
Thu Dec 4 12:59:31 CET 2014
> Because of different cache line size, the alignment of struct
> rte_kni_mbuf in rte_kni_common.h doesn't work on IBM Power. This patch
> changed from 64 to RTE_CACHE_LINE_SIZE micro to do the alignment.
>
> Signed-off-by: Chao Zhu <chaozhu at linux.vnet.ibm.com>
Acked-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
Applied
I wonder if we could try to guess the cache line size instead of
configuring it in many places.
Maybe we could use something like sysconf(_SC_LEVEL1_DCACHE_LINESIZE)?
Thanks
--
Thomas
More information about the dev
mailing list