From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGRaD-000617-TE for qemu-devel@nongnu.org; Thu, 20 Feb 2014 06:14:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGRa7-0003V7-U7 for qemu-devel@nongnu.org; Thu, 20 Feb 2014 06:14:25 -0500 Received: from mx1.redhat.com ([209.132.183.28]:6555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGRa7-0003Ty-MP for qemu-devel@nongnu.org; Thu, 20 Feb 2014 06:14:19 -0500 From: Stefan Hajnoczi Date: Thu, 20 Feb 2014 12:14:09 +0100 Message-Id: <1392894849-7907-4-git-send-email-stefanha@redhat.com> In-Reply-To: <1392894849-7907-1-git-send-email-stefanha@redhat.com> References: <1392894849-7907-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 3/3] virtio-net: use qemu_get_queue() where possible List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Vincenzo Maffione qemu_get_queue() is a shorthand for qemu_get_subqueue(n->nic, 0). Use the shorthand where possible. Signed-off-by: Stefan Hajnoczi --- hw/net/virtio-net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 9218a09..3c0342e 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -459,7 +459,7 @@ static uint32_t virtio_net_bad_features(VirtIODevice *vdev) static void virtio_net_apply_guest_offloads(VirtIONet *n) { - qemu_set_offload(qemu_get_subqueue(n->nic, 0)->peer, + qemu_set_offload(qemu_get_queue(n->nic)->peer, !!(n->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_CSUM)), !!(n->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_TSO4)), !!(n->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_TSO6)), -- 1.8.5.3