lpm: fix big endian support
authorXuelin Shi <xuelin.shi@freescale.com>
Tue, 24 Mar 2015 05:58:20 +0000 (13:58 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 10 Jul 2015 21:23:15 +0000 (23:23 +0200)
commitafc5c914a08312a0c8030ce3c46f87beb35b8d40
tree99c2998460c6159a16d91ae24a654d358e7a9303
parent6db141c91e1f607025fc8d0fae613a97820101e9
lpm: fix big endian support

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@freescale.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_lpm/rte_lpm.h