virtio-net: put virtio net header inline with data
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 25 Jul 2013 00:50:23 +0000 (10:20 +0930)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Jul 2013 03:06:10 +0000 (20:06 -0700)
commite7428e95a06fb516fac1308bd0e176e27c0b9287
tree7ccd3f84a565b24ddf7efe5b10325cfd34ad98fc
parent10eccb46b521359fa344f63459087df722f0776d
virtio-net: put virtio net header inline with data

For small packets we can simplify xmit processing
by linearizing buffers with the header:
most packets seem to have enough head room
we can use for this purpose.
Since existing hypervisors require that header
is the first s/g element, we need a feature bit
for this.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c
include/uapi/linux/virtio_net.h