virtio-net: track host/guest header length
commite35e23f655fb120a2b4d0695bdee86fafd9caabf
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 24 Sep 2012 10:12:25 +0000 (24 12:12 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Oct 2012 16:25:22 +0000 (29 18:25 +0200)
tree4e9d975b54613152cf95e8da9d873fcd053019b5
parentbc927e488c040c8ef2faed323e8a1a3d0ebbfb62
virtio-net: track host/guest header length

Tracking these in device state instead of
re-calculating on each packet. No functional
changes.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio-net.c