virtio_net: get rid of virtio_net_hdr/skb_vnet_hdr
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 24 Oct 2014 13:55:57 +0000 (16:55 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Dec 2014 10:05:28 +0000 (12:05 +0200)
commit012873d057a449c4480e7679e733a7daa9aa540f
treeae7c8bd666d623f1964b588d71ea4f2b8d1346b5
parent946fa5647b529402161814ca8ed1302254b6affb
virtio_net: get rid of virtio_net_hdr/skb_vnet_hdr

virtio 1.0 doesn't use virtio_net_hdr anymore, and in fact, it's not
really useful since virtio_net_hdr_mrg_rxbuf includes that as the first
field anyway.

Let's drop it, precalculate header len and store within vi instead.

This way we can also remove struct skb_vnet_hdr.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
drivers/net/virtio_net.c