diff options
author | Jason Wang | 2013-01-30 12:12:23 +0100 |
---|---|---|
committer | Anthony Liguori | 2013-02-01 18:03:00 +0100 |
commit | cc1f0f45425d0cca41ad421623f92bebc93a21a9 (patch) | |
tree | 8015fb30e1da7eab59fbbf236f790500a47cbea0 /hw/ne2000-isa.c | |
parent | net: introduce qemu_get_queue() (diff) | |
download | qemu-cc1f0f45425d0cca41ad421623f92bebc93a21a9.tar.gz qemu-cc1f0f45425d0cca41ad421623f92bebc93a21a9.tar.xz qemu-cc1f0f45425d0cca41ad421623f92bebc93a21a9.zip |
net: introduce qemu_get_nic()
To support multiqueue, this patch introduces a helper qemu_get_nic() to get
NICState from a NetClientState. The following patches would refactor this helper
to support multiqueue.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ne2000-isa.c')
-rw-r--r-- | hw/ne2000-isa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ne2000-isa.c b/hw/ne2000-isa.c index fa47e12857..342c6bdad1 100644 --- a/hw/ne2000-isa.c +++ b/hw/ne2000-isa.c @@ -38,7 +38,7 @@ typedef struct ISANE2000State { static void isa_ne2000_cleanup(NetClientState *nc) { - NE2000State *s = DO_UPCAST(NICState, nc, nc)->opaque; + NE2000State *s = qemu_get_nic_opaque(nc); s->nic = NULL; } |