]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb309879564d9309bcef00ca1998471d4c5a17e43
tree7ccd3f84a565b24ddf7efe5b10325cfd34ad98fc
parentd1b02f7c017a282553bcf4da7fba92c4ddbef0f0
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