numam-dpdk/drivers/net/virtio
Hemant Agrawal c1ada9b63b net/virtio: fix build with 0 headroom
When using RTE_PKTMBUF_HEADROOM as 0, virito ethdev driver throws
compilation error
virtio_ethdev.c:1851:2: note: in expansion of macro ‘RTE_BUILD_BUG_ON’
RTE_BUILD_BUG_ON(RTE_PKTMBUF_HEADROOM
	< sizeof(struct virtio_net_hdr_mrg_rxbuf));

This patch change it into run-time check.

Bugzilla ID: 335
Fixes: dec08c28c0 ("virtio: check packet headroom at compile time")
Cc: stable@dpdk.org

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2019-08-05 19:26:49 +02:00
..
virtio_user net/virtio: fix build 2019-07-30 19:46:11 +02:00
Makefile mk: add experimental tag check 2018-01-29 23:35:29 +01:00
meson.build build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00
rte_pmd_virtio_version.map virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_ethdev.c net/virtio: fix build with 0 headroom 2019-08-05 19:26:49 +02:00
virtio_ethdev.h net/virtio: add Tx preparation 2019-06-20 23:42:04 +02:00
virtio_logs.h net/virtio: implement dynamic logging 2018-01-16 18:47:49 +01:00
virtio_pci.c net/virtio: unmap device on initialization error 2019-06-20 23:42:04 +02:00
virtio_pci.h net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
virtio_ring.h net/virtio: define avail and used flags as constants 2019-03-29 17:25:32 +01:00
virtio_rxtx_simple_neon.c net/virtio: refactor virtqueue structure 2019-03-20 18:15:42 +01:00
virtio_rxtx_simple_sse.c net/virtio: refactor virtqueue structure 2019-03-20 18:15:42 +01:00
virtio_rxtx_simple.c eal: add macro for attribute weak 2018-10-25 02:11:23 +02:00
virtio_rxtx_simple.h net/virtio: refactor virtqueue structure 2019-03-20 18:15:42 +01:00
virtio_rxtx.c net/virtio: fix packets check in mergeable packed Rx 2019-06-20 23:42:04 +02:00
virtio_rxtx.h net/virtio: fix resuming port with Rx vector path 2018-02-13 18:57:59 +01:00
virtio_user_ethdev.c net/virtio_user: remove redundant declaration 2019-07-23 14:31:35 +02:00
virtqueue.c net/virtio: drop redundant suffix in packed ring structure 2019-03-20 18:15:42 +01:00
virtqueue.h net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00