src/dpdk/drivers/net/cxgbe/cxgbe_filter.c
static int cxgbe_set_ftid(struct tid_info *t, u32 fidx, u8 nentries)
{
	u32 i;

	t4_os_lock(&t->ftid_lock);
	if (rte_bitmap_get(t->ftid_bmap, fidx)) {
		t4_os_unlock(&t->ftid_lock);
		return -EBUSY;
	}

	for (i = fidx; i < fidx + nentries; i++)
		rte_bitmap_set(t->ftid_bmap, i);
	t4_os_unlock(&t->ftid_lock);
	return 0;
}
/**
 * Set the corresponding entries in the bitmap.
 */
Set the corresponding entries in the bitmap.
Set the corresponding entries in the bitmap .
static int cxgbe_set_ftid(struct tid_info *t, u32 fidx, u8 nentries)
{
	u32 i;
	t4_os_lock(&t->ftid_lock);
	if (rte_bitmap_get(t->ftid_bmap, fidx)) {
		t4_os_unlock(&t->ftid_lock);
		return -EBUSY;
	}
	for (i = fidx; i < fidx + nentries; i++)
		rte_bitmap_set(t->ftid_bmap, i);
	t4_os_unlock(&t->ftid_lock);
	return 0;
}
static int cxgbe_set_ftid ( struct tid_info * t , u32 fidx , u8 nentries ) { u32 i ; t4_os_lock ( & t -> ftid_lock ) ; if ( rte_bitmap_get ( t -> ftid_bmap , fidx ) ) { t4_os_unlock ( & t -> ftid_lock ) ; return - EBUSY ; } for ( i = fidx ; i < fidx + nentries ; i ++ ) rte_bitmap_set ( t -> ftid_bmap , i ) ; t4_os_unlock ( & t -> ftid_lock ) ; return 0 ; }
Set the corresponding entries in the bitmap.
Set the corresponding entries in the bitmap .