static void virtio_net_apply_guest_offloads(VirtIONet *n)

{

    qemu_peer_set_offload(qemu_get_subqueue(n->nic, 0),

            !!(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)),

            !!(n->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_ECN)),

            !!(n->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_UFO)));

}

static void virtio_net_apply_guest_offloads(VirtIONet *n)

{

    qemu_peer_set_offload(qemu_get_subqueue(n->nic, 0),

            !!(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)),

            !!(n->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_ECN)),

            !!(n->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_UFO)));

}

static void FUNC_0(VirtIONet *VAR_0)

{

    qemu_peer_set_offload(qemu_get_subqueue(VAR_0->nic, 0),

            !!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_CSUM)),

            !!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_TSO4)),

            !!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_TSO6)),

            !!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_ECN)),

            !!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_UFO)));

}

static void FUNC_0(VirtIONet *VAR_0)
{ qemu_peer_set_offload(qemu_get_subqueue(VAR_0->nic, 0),
!!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_CSUM)),
!!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_TSO4)),
!!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_TSO6)),
!!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_ECN)),
!!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_UFO))); }