[dpdk-dev] [PATCH v2] librte_lpm: define tbl entry reversely for big endian

2015-07-10 Thread Thomas Monjalon
2015-05-19 11:05, Bruce Richardson: > On Tue, Mar 24, 2015 at 01:58:20PM +0800, xuelin.shi at freescale.com wrote: > > From: Xuelin Shi > > > > This module uses type conversion between struct and int. > > Also truncation and comparison is used with this int. > > It is not safe for different endia

[dpdk-dev] [PATCH v2] librte_lpm: define tbl entry reversely for big endian

2015-05-19 Thread Bruce Richardson
On Tue, Mar 24, 2015 at 01:58:20PM +0800, xuelin.shi at freescale.com wrote: > From: Xuelin Shi > > This module uses type conversion between struct and int. > Also truncation and comparison is used with this int. > It is not safe for different endian arch. > > Add ifdef for big endian struct to

[dpdk-dev] [PATCH v2] librte_lpm: define tbl entry reversely for big endian

2015-03-24 Thread xuelin....@freescale.com
From: Xuelin Shi This module uses type conversion between struct and int. Also truncation and comparison is used with this int. It is not safe for different endian arch. Add ifdef for big endian struct to fix this issue. Signed-off-by: Xuelin Shi --- changes for v2: add lib/librte_lpm/rte