Hi

I am working on OVS-1.7.3 code I just get stucked in the following code
snippat in rconn_run function that how it works, can you please help me out
how the code in blue works, is it a run time code ?

void
rconn_run(struct rconn *rc)
{
    int old_state;
    size_t i;
    if (rc->vconn) {
        vconn_run(rc->vconn);
    }
    for (i = 0; i < rc->n_monitors; i++) {
        vconn_run(rc->monitors[i]);
    }

    do {
        old_state = rc->state;
        switch (rc->state) {
#define STATE(NAME, VALUE) case S_##NAME: run_##NAME(rc); break;
            STATES
#undef STATE
        default:
            NOT_REACHED();
        }
    } while (rc->state != old_state);
}

Thanks and regards

Anish
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to