On 4/6/2017 5:06 PM, Jerin Jacob wrote: > The base code was using native GCC macros > for endian detection. Change to portable > rte_byteorder.h based endian detection. > > Fixes: 262d43fe20ee ("net/thunderx/base: add HW register definitions") > > Suggested-by: Thomas Monjalon <thomas.monja...@6wind.com> > Signed-off-by: Jerin Jacob <jerin.ja...@caviumnetworks.com>
There is one more __BYTE_ORDER__ usage [1], is it kept intentional? [1] $ git grep __BYTE_ORDER__ drivers/net/thunderx/ drivers/net/thunderx/base/nicvf_mbox.c:#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__