src/dpdk/drivers/net/cxgbe/cxgbe_filter.c
bool cxgbe_is_filter_set(struct tid_info *t, u32 fidx, u8 nentries)
{
	bool result = FALSE;
	u32 i;

	/* Ensure there's enough slots available. */
	t4_os_lock(&t->ftid_lock);
	for (i = fidx; i < fidx + nentries; i++) {
		if (rte_bitmap_get(t->ftid_bmap, i)) {
			result = TRUE;
			break;
		}
	}
	t4_os_unlock(&t->ftid_lock);
	return result;
}
/**
 * Check if entries are already filled.
 */
Check if entries are already filled.
Check if entries are already filled .
bool cxgbe_is_filter_set(struct tid_info *t, u32 fidx, u8 nentries)
{
	bool result = FALSE;
	u32 i;
	t4_os_lock(&t->ftid_lock);
	for (i = fidx; i < fidx + nentries; i++) {
		if (rte_bitmap_get(t->ftid_bmap, i)) {
			result = TRUE;
			break;
		}
	}
	t4_os_unlock(&t->ftid_lock);
	return result;
}
bool cxgbe_is_filter_set ( struct tid_info * t , u32 fidx , u8 nentries ) { bool result = FALSE ; u32 i ; t4_os_lock ( & t -> ftid_lock ) ; for ( i = fidx ; i < fidx + nentries ; i ++ ) { if ( rte_bitmap_get ( t -> ftid_bmap , i ) ) { result = TRUE ; break ; } } t4_os_unlock ( & t -> ftid_lock ) ; return result ; }
Check if entries are already filled.
Check if entries are already filled .
/* Ensure there's enough slots available. */