src/dpdk/lib/librte_lpm/rte_lpm6.c
static inline uint32_t
tbl8_get(struct rte_lpm6 *lpm, uint32_t *tbl8_ind)
{
	if (lpm->tbl8_pool_pos == lpm->number_tbl8s)
		/* no more free tbl8 */
		return -ENOSPC;

	/* next index */
	*tbl8_ind = lpm->tbl8_pool[lpm->tbl8_pool_pos++];
	return 0;
}
/*
 * Get an index of a free tbl8 from the pool
 */
Get an index of a free tbl8 from the pool
Get an index of a free tbl8 from the pool
static inline uint32_t
tbl8_get(struct rte_lpm6 *lpm, uint32_t *tbl8_ind)
{
	if (lpm->tbl8_pool_pos == lpm->number_tbl8s)
		return -ENOSPC;
	*tbl8_ind = lpm->tbl8_pool[lpm->tbl8_pool_pos++];
	return 0;
}
static inline uint32_t tbl8_get ( struct rte_lpm6 * lpm , uint32_t * tbl8_ind ) { if ( lpm -> tbl8_pool_pos == lpm -> number_tbl8s ) return - ENOSPC ; * tbl8_ind = lpm -> tbl8_pool [ lpm -> tbl8_pool_pos ++ ] ; return 0 ; }
Get an index of a free tbl8 from the pool
Get an index of a free tbl8 from the pool
/* no more free tbl8 */ /* next index */