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

Thomas Monjalon thomas.monjalon at 6wind.com
Fri Jul 10 23:23:10 CEST 2015


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 <xuelin.shi at freescale.com>
> > 
> > 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 <xuelin.shi at freescale.com>
> 
> Since nobody objects to this patch, and it looks ok to me:
> 
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>

Applied, thanks


More information about the dev mailing list