lib/stp.c
/* Returns the cost of the path from 'stp' to the root of the spanning tree. */
Returns the cost of the path from 'stp' to the root of the spanning tree.
Returns the cost of the path from ' stp ' to the root of the spanning tree .
int
stp_get_root_path_cost(const struct stp *stp)
{
    int cost;
    ovs_mutex_lock(&mutex);
    cost = stp->root_path_cost;
    ovs_mutex_unlock(&mutex);
    return cost;
}
int stp_get_root_path_cost ( const struct stp * stp ) { int cost ; ovs_mutex_lock ( & mutex ) ; cost = stp -> root_path_cost ; ovs_mutex_unlock ( & mutex ) ; return cost ; }
Returns the cost of the path from 'stp' to the root of the spanning tree.
Returns the cost of the path from ' stp ' to the root of the spanning tree .