virtio-net: refactor receive_hdr
commit280598b7a5fdf96fb79d87a2129750bad5dbf24b
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 24 Sep 2012 11:24:17 +0000 (24 13:24 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Oct 2012 16:25:23 +0000 (29 18:25 +0200)
treec4cef56971265a46516008d0e1cc6a9bd0d138cf
parent63c5872873de8d7d994a589eed7bfe6a70cc8e06
virtio-net: refactor receive_hdr

Now that we know host hdr length, we don't need to
duplicate the logic in receive_hdr: caller can
figure out the offset itself.

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