lib/stp.c
/* Returns true if something has happened to 'stp' which necessitates flushing
 * the client's MAC learning table.  Calling this function resets 'stp' so that
 * future calls will return false until flushing is required again. */
Returns true if something has happened to 'stp' which necessitates flushing
the client's MAC learning table.  Calling this function resets 'stp' so that
future calls will return false until flushing is required again.
Returns true if something has happened to ' stp ' which necessitates flushing the client ' s MAC learning table . Calling this function resets ' stp ' so that future calls will return false until flushing is required again .
bool
stp_check_and_reset_fdb_flush(struct stp *stp)
{
    bool needs_flush;
    ovs_mutex_lock(&mutex);
    needs_flush = stp->fdb_needs_flush;
    stp->fdb_needs_flush = false;
    ovs_mutex_unlock(&mutex);
    return needs_flush;
}
bool stp_check_and_reset_fdb_flush ( struct stp * stp ) { bool needs_flush ; ovs_mutex_lock ( & mutex ) ; needs_flush = stp -> fdb_needs_flush ; stp -> fdb_needs_flush = false ; ovs_mutex_unlock ( & mutex ) ; return needs_flush ; }
Returns true if something has happened to 'stp' which necessitates flushing
 the client's MAC learning table.
Returns true if something has happened to ' stp ' which necessitates flushing the client ' s MAC learning table .