lib/stp.c
/* Retrieves BPDU transmit and receive counts for 'p'. */
Retrieves BPDU transmit and receive counts for 'p'.
Retrieves BPDU transmit and receive counts for ' p ' .
void
stp_port_get_counts(const struct stp_port *p,
                    int *tx_count, int *rx_count, int *error_count)
{
    ovs_mutex_lock(&mutex);
    *tx_count = p->tx_count;
    *rx_count = p->rx_count;
    *error_count = p->error_count;
    ovs_mutex_unlock(&mutex);
}
void stp_port_get_counts ( const struct stp_port * p , int * tx_count , int * rx_count , int * error_count ) { ovs_mutex_lock ( & mutex ) ; * tx_count = p -> tx_count ; * rx_count = p -> rx_count ; * error_count = p -> error_count ; ovs_mutex_unlock ( & mutex ) ; }
Retrieves BPDU transmit and receive counts for 'p'.
Retrieves BPDU transmit and receive counts for ' p ' .