[dpdk-dev] [PATCH] fm10k: fix the compilation on big endian platforms

2015-08-04 Thread Tony Lu
>-Original Message- >From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] >Sent: Monday, August 03, 2015 7:39 PM >To: Chao Zhu >Cc: dev at dpdk.org; Zhigang Lu >Subject: Re: [dpdk-dev] [PATCH] fm10k: fix the compilation on big endian >platforms > >2015-0

[dpdk-dev] [PATCH] fm10k: fix the compilation on big endian platforms

2015-08-03 Thread Chao Zhu
On 2015/8/3 17:06, Thomas Monjalon wrote: > 2015-08-03 14:31, Chao Zhu: >> The rte_cpu_to_le_32 function can't be used to define const variables >> because it has different implementation on big endian platforms. If >> doing so, it will cause 'initializer element is not constant' compiling >> err

[dpdk-dev] [PATCH] fm10k: fix the compilation on big endian platforms

2015-08-03 Thread Chao Zhu
Got it. Thanks! On 2015/8/3 16:53, Thomas Monjalon wrote: > 2015-08-03 14:31, Chao Zhu: >> The using of rte_cpu_to_le_32() in pre-compile macros will cause error >> 'initializer element is not constant' on big endian platforms. This patch >> fixes the compilation error of fm10k driver. >> >> >> Ch

[dpdk-dev] [PATCH] fm10k: fix the compilation on big endian platforms

2015-08-03 Thread Chao Zhu
The rte_cpu_to_le_32 function can't be used to define const variables because it has different implementation on big endian platforms. If doing so, it will cause 'initializer element is not constant' compiling error. This patch fixes this problem. Signed-off-by: Chao Zhu --- drivers/net/fm10k/ba

[dpdk-dev] [PATCH] fm10k: fix the compilation on big endian platforms

2015-08-03 Thread Chao Zhu
The using of rte_cpu_to_le_32() in pre-compile macros will cause error 'initializer element is not constant' on big endian platforms. This patch fixes the compilation error of fm10k driver. Chao Zhu (1): fm10k: fix the compilation on big endian platforms drivers/net/fm10k/base/fm10k_tlv.c |

[dpdk-dev] [PATCH] fm10k: fix the compilation on big endian platforms

2015-08-03 Thread Thomas Monjalon
2015-08-03 19:32, Chao Zhu: > On 2015/8/3 17:06, Thomas Monjalon wrote: > > 2015-08-03 14:31, Chao Zhu: > >> The rte_cpu_to_le_32 function can't be used to define const variables > >> because it has different implementation on big endian platforms. If > >> doing so, it will cause 'initializer eleme

[dpdk-dev] [PATCH] fm10k: fix the compilation on big endian platforms

2015-08-03 Thread Thomas Monjalon
2015-08-03 14:31, Chao Zhu: > The rte_cpu_to_le_32 function can't be used to define const variables > because it has different implementation on big endian platforms. If > doing so, it will cause 'initializer element is not constant' compiling > error. This patch fixes this problem. > --- a/driver

[dpdk-dev] [PATCH] fm10k: fix the compilation on big endian platforms

2015-08-03 Thread Thomas Monjalon
2015-08-03 14:31, Chao Zhu: > The using of rte_cpu_to_le_32() in pre-compile macros will cause error > 'initializer element is not constant' on big endian platforms. This patch > fixes the compilation error of fm10k driver. > > > Chao Zhu (1): > fm10k: fix the compilation on big endian platform