sys/dev/ixgbe/ixgbe.h
/*
** Find the number of unrefreshed RX descriptors
*/
Find the number of unrefreshed RX descriptors
Find the number of unrefreshed RX descriptors
static inline u16
ixgbe_rx_unrefreshed(struct rx_ring *rxr)
{       
	if (rxr->next_to_check > rxr->next_to_refresh)
		return (rxr->next_to_check - rxr->next_to_refresh - 1);
	else
		return ((rxr->num_desc + rxr->next_to_check) -
		    rxr->next_to_refresh - 1);
}
static inline u16 ixgbe_rx_unrefreshed ( struct rx_ring * rxr ) { if ( rxr -> next_to_check > rxr -> next_to_refresh ) return ( rxr -> next_to_check - rxr -> next_to_refresh - 1 ) ; else return ( ( rxr -> num_desc + rxr -> next_to_check ) - rxr -> next_to_refresh - 1 ) ; }
Find the number of unrefreshed RX descriptors
Find the number of unrefreshed RX descriptors