static void vhost_user_cleanup(NetClientState *nc)

{

    VhostUserState *s = DO_UPCAST(VhostUserState, nc, nc);



    if (s->vhost_net) {

        vhost_net_cleanup(s->vhost_net);

        g_free(s->vhost_net);

        s->vhost_net = NULL;


    if (nc->queue_index == 0) {





        qemu_chr_fe_deinit(&s->chr, true);




    qemu_purge_queued_packets(nc);

static void vhost_user_cleanup(NetClientState *nc)

{

    VhostUserState *s = DO_UPCAST(VhostUserState, nc, nc);



    if (s->vhost_net) {

        vhost_net_cleanup(s->vhost_net);

        g_free(s->vhost_net);

        s->vhost_net = NULL;


    if (nc->queue_index == 0) {





        qemu_chr_fe_deinit(&s->chr, true);




    qemu_purge_queued_packets(nc);

static void FUNC_0(NetClientState *VAR_0)

{

    VhostUserState *s = DO_UPCAST(VhostUserState, VAR_0, VAR_0);



    if (s->vhost_net) {

        vhost_net_cleanup(s->vhost_net);

        g_free(s->vhost_net);

        s->vhost_net = NULL;


    if (VAR_0->queue_index == 0) {





        qemu_chr_fe_deinit(&s->chr, true);




    qemu_purge_queued_packets(VAR_0);

static void FUNC_0(NetClientState *VAR_0)
{ VhostUserState *s = DO_UPCAST(VhostUserState, VAR_0, VAR_0); if (s->vhost_net) { vhost_net_cleanup(s->vhost_net); g_free(s->vhost_net); s->vhost_net = NULL; if (VAR_0->queue_index == 0) { qemu_chr_fe_deinit(&s->chr, true); qemu_purge_queued_packets(VAR_0);