net/dpaa: fix build with 0 headroom
authorHemant Agrawal <hemant.agrawal@nxp.com>
Thu, 25 Jul 2019 11:06:43 +0000 (16:36 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 5 Aug 2019 17:24:17 +0000 (19:24 +0200)
commit47854c180349c3d41690e60aea9458a864572389
treecfd0c1888318019c0934686271794b063cfe3a76
parentd879f5750f63b35bd40144bc0f2c832a59713810
net/dpaa: 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: ff9e112d7870 ("net/dpaa: add NXP DPAA PMD driver skeleton")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/dpaa/dpaa_ethdev.c
drivers/net/dpaa/dpaa_ethdev.h