bus/fslmc: fix build with 0 headroom
authorHemant Agrawal <hemant.agrawal@nxp.com>
Thu, 25 Jul 2019 11:06:44 +0000 (16:36 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 5 Aug 2019 17:24:27 +0000 (19:24 +0200)
commitf4435e380d7cd51327051d2de3409ba83a2b690c
tree37bafe13f0e21130e34a1b2ac1e86bcd48bd2c61
parent47854c180349c3d41690e60aea9458a864572389
bus/fslmc: fix build with 0 headroom

When using RTE_PKTMBUF_HEADROOM as 0, dpaa driver throws compilation error
error "Annotation requirement is more than RTE_PKTMBUF_HEADROOM"

This patch change it into run-time check.

Bugzilla ID: 335
Fixes: beb2a7865dda ("bus/fslmc: define hardware annotation area size")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/bus/fslmc/portal/dpaa2_hw_pvt.h
drivers/net/dpaa2/dpaa2_ethdev.c