[dpdk-dev] [PATCH] virtio: check mbuf is direct when using any layout

2016-05-23 Thread Yuanhan Liu
On Mon, May 09, 2016 at 06:19:35PM +0200, Olivier Matz wrote: > The commit dd856dfcb9e74 introduced an optimization that prepends virtio > header to mbuf data. It can be used when the tx mbuf is writeable, so we > need to check that the mbuf is direct (i.e. it embeds its own data). > > Fixes: dd85

[dpdk-dev] [PATCH] virtio: check mbuf is direct when using any layout

2016-05-09 Thread Olivier Matz
The commit dd856dfcb9e74 introduced an optimization that prepends virtio header to mbuf data. It can be used when the tx mbuf is writeable, so we need to check that the mbuf is direct (i.e. it embeds its own data). Fixes: dd856dfcb9e74 "virtio: use any layout on Tx" Signed-off-by: Olivier Matz -