void qemu_del_nic(NICState *nic)

{

    int i, queues = nic->conf->queues;



    /* If this is a peer NIC and peer has already been deleted, free it now. */

    if (nic->peer_deleted) {

        for (i = 0; i < queues; i++) {

            qemu_free_net_client(qemu_get_subqueue(nic, i)->peer);

        }

    }



    for (i = queues - 1; i >= 0; i--) {

        NetClientState *nc = qemu_get_subqueue(nic, i);



        qemu_cleanup_net_client(nc);

        qemu_free_net_client(nc);

    }

}

void qemu_del_nic(NICState *nic)

{

    int i, queues = nic->conf->queues;



    

    if (nic->peer_deleted) {

        for (i = 0; i < queues; i++) {

            qemu_free_net_client(qemu_get_subqueue(nic, i)->peer);

        }

    }



    for (i = queues - 1; i >= 0; i--) {

        NetClientState *nc = qemu_get_subqueue(nic, i);



        qemu_cleanup_net_client(nc);

        qemu_free_net_client(nc);

    }

}

void FUNC_0(NICState *VAR_0)

{

    int VAR_1, VAR_2 = VAR_0->conf->VAR_2;



    

    if (VAR_0->peer_deleted) {

        for (VAR_1 = 0; VAR_1 < VAR_2; VAR_1++) {

            qemu_free_net_client(qemu_get_subqueue(VAR_0, VAR_1)->peer);

        }

    }



    for (VAR_1 = VAR_2 - 1; VAR_1 >= 0; VAR_1--) {

        NetClientState *nc = qemu_get_subqueue(VAR_0, VAR_1);



        qemu_cleanup_net_client(nc);

        qemu_free_net_client(nc);

    }

}

void FUNC_0(NICState *VAR_0)
{ int VAR_1, VAR_2 = VAR_0->conf->VAR_2; if (VAR_0->peer_deleted) { for (VAR_1 = 0; VAR_1 < VAR_2; VAR_1++) { qemu_free_net_client(qemu_get_subqueue(VAR_0, VAR_1)->peer); } } for (VAR_1 = VAR_2 - 1; VAR_1 >= 0; VAR_1--) { NetClientState *nc = qemu_get_subqueue(VAR_0, VAR_1); qemu_cleanup_net_client(nc); qemu_free_net_client(nc); } }