net/enetc: fix big endian build and buffer allocation
authorGagandeep Singh <g.singh@nxp.com>
Fri, 12 Apr 2019 12:28:56 +0000 (12:28 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:54 +0000 (14:51 +0200)
commit389a450f377b6c5aed016f437eb6a6f78adb4cf1
tree43aa6866ae944472e4bceb0a2958963f70e7f692
parent63c34c299acf53e3fdfb5a9c30af8c9d0b7b6188
net/enetc: fix big endian build and buffer allocation

There was an error at rte_constant_bswap64 while compiling
with big endian toolchain. so fixing it by adding type cast.

Also, rte_pktmbuf_alloc API should be used to allocate mbuf
instead of rte_pktmbuf_raw_alloc to avoid use of stale mbuf
information.

Fixes: 469c6111a799 ("net/enetc: enable Rx and Tx")
Cc: stable@dpdk.org
Suggested-by: Thomas Monjalon <thomas@monjalon.net>
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
drivers/net/enetc/enetc_rxtx.c