virtio: check packet headroom at compile time
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 9 Feb 2015 01:14:00 +0000 (09:14 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Feb 2015 18:18:22 +0000 (19:18 +0100)
commitdec08c28c0b30a6167df6895084fa1f7c6aa2505
treecd8869a9f3367d0a90200b5ed1394b388e1464e5
parenta8c0f835a7d2cc2b3558b44d7b26e278bee1a26a
virtio: check packet headroom at compile time

Better to check at compile time than fail at runtime.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
lib/librte_pmd_virtio/virtio_ethdev.c