net/thunderx: check data offset alignment requirement
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Mon, 13 Mar 2017 08:02:11 +0000 (13:32 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 16:59:39 +0000 (18:59 +0200)
commit34c2e7026fb30f6756d2c84d07d99c94106bb2ab
tree28fb6e57d487d85438cdb9a3086a151a2af34bb8
parent0934b7f12aabc960b6a1ad5c6f4d5f591e8c787c
net/thunderx: check data offset alignment requirement

nicvf HW expects the DMA address of the packet data to be
aligned with cache line size.

Packet data offset is a function of struct mbuf size,
mbuf private size and headroom. mbuf private size can
be changed from the application in pool creation, this
check detects HW alignment requirement constraint in pmd
start function.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/thunderx/nicvf_ethdev.c