int vhost_set_vring_enable(NetClientState *nc, int enable)

{

    VHostNetState *net = get_vhost_net(nc);

    const VhostOps *vhost_ops;



    nc->vring_enable = enable;



    if (!net) {

        return 0;

    }



    vhost_ops = net->dev.vhost_ops;

    if (vhost_ops->vhost_set_vring_enable) {

        return vhost_ops->vhost_set_vring_enable(&net->dev, enable);

    }



    return 0;

}

int vhost_set_vring_enable(NetClientState *nc, int enable)

{

    VHostNetState *net = get_vhost_net(nc);

    const VhostOps *vhost_ops;



    nc->vring_enable = enable;



    if (!net) {

        return 0;

    }



    vhost_ops = net->dev.vhost_ops;

    if (vhost_ops->vhost_set_vring_enable) {

        return vhost_ops->vhost_set_vring_enable(&net->dev, enable);

    }



    return 0;

}

    const VhostOps *vhost_ops;     if (!net) {         return 0;     vhost_ops = net->dev.vhost_ops;
int FUNC_0(NetClientState *VAR_0, int VAR_1)

{

    VHostNetState *net = get_vhost_net(VAR_0);

    const VhostOps *VAR_2;



    VAR_0->vring_enable = VAR_1;



    if (!net) {

        return 0;

    }



    VAR_2 = net->dev.VAR_2;

    if (VAR_2->FUNC_0) {

        return VAR_2->FUNC_0(&net->dev, VAR_1);

    }



    return 0;

}

int FUNC_0(NetClientState *VAR_0, int VAR_1)
{ VHostNetState *net = get_vhost_net(VAR_0); const VhostOps *VAR_2; VAR_0->vring_enable = VAR_1; if (!net) { return 0; } VAR_2 = net->dev.VAR_2; if (VAR_2->FUNC_0) { return VAR_2->FUNC_0(&net->dev, VAR_1); } return 0; }