virtio: use any layout on Tx
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 4 Mar 2016 18:19:20 +0000 (10:19 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 18:05:25 +0000 (19:05 +0100)
commitdd856dfcb9e740467a390c6f06f1a329e944eb28
tree88d20ce346edc65b300f4f9567e9cbcab8ae2d59
parent6dc5de3a6aefba3946fe04368d93994db3f7a5fd
virtio: use any layout on Tx

Virtio supports a feature that allows sender to put transmit
header prepended to data.  It requires that the mbuf be writeable, correct
alignment, and the feature has been negotiatied.  If all this works out,
then it will be the optimum way to transmit a single segment packet.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
drivers/net/virtio/virtio_rxtx.c