virtio-net: use virtio wrappers to access headers
commit1399c60d70a261acbeb65f614a00eab2dbf4237b
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 24 Jun 2014 17:42:54 +0000 (24 19:42 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 29 Jun 2014 16:39:42 +0000 (29 19:39 +0300)
tree16f3f9517b5aadfbe73c03727daf58f734670c1e
parentcee3ca002855f87b78aaa7769efeb90321757e49
virtio-net: use virtio wrappers to access headers

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
[ pass VirtIODevice * to memory accessors,
  converted new tswap locations to virtio_tswap,
  Greg Kurz <gkurz@linux.vnet.ibm.com> ]
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/virtio-net.c