pvscsi_on_cmd_setup_rings(PVSCSIState *s)

{

    PVSCSICmdDescSetupRings *rc =

        (PVSCSICmdDescSetupRings *) s->curr_cmd_data;



    trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_RINGS");



    pvscsi_dbg_dump_tx_rings_config(rc);

    if (pvscsi_ring_init_data(&s->rings, rc) < 0) {

        return PVSCSI_COMMAND_PROCESSING_FAILED;

    }



    s->rings_info_valid = TRUE;

    return PVSCSI_COMMAND_PROCESSING_SUCCEEDED;

}
