src/dpdk/lib/librte_lpm/rte_lpm6.c
void
rte_lpm6_delete_all(struct rte_lpm6 *lpm)
{
	/* Zero used rules counter. */
	lpm->used_rules = 0;

	/* Zero tbl24. */
	memset(lpm->tbl24, 0, sizeof(lpm->tbl24));

	/* Zero tbl8. */
	memset(lpm->tbl8, 0, sizeof(lpm->tbl8[0]) *
			RTE_LPM6_TBL8_GROUP_NUM_ENTRIES * lpm->number_tbl8s);

	/* init pool of free tbl8 indexes */
	tbl8_pool_init(lpm);

	/* Delete all rules form the rules table. */
	rte_hash_reset(lpm->rules_tbl);
}
/*
 * Delete all rules from the LPM table.
 */
Delete all rules from the LPM table.
Delete all rules from the LPM table .
void
rte_lpm6_delete_all(struct rte_lpm6 *lpm)
{
	lpm->used_rules = 0;
	memset(lpm->tbl24, 0, sizeof(lpm->tbl24));
	memset(lpm->tbl8, 0, sizeof(lpm->tbl8[0]) *
			RTE_LPM6_TBL8_GROUP_NUM_ENTRIES * lpm->number_tbl8s);
	tbl8_pool_init(lpm);
	rte_hash_reset(lpm->rules_tbl);
}
void rte_lpm6_delete_all ( struct rte_lpm6 * lpm ) { lpm -> used_rules = 0 ; memset ( lpm -> tbl24 , 0 , sizeof ( lpm -> tbl24 ) ) ; memset ( lpm -> tbl8 , 0 , sizeof ( lpm -> tbl8 [ 0 ] ) * RTE_LPM6_TBL8_GROUP_NUM_ENTRIES * lpm -> number_tbl8s ) ; tbl8_pool_init ( lpm ) ; rte_hash_reset ( lpm -> rules_tbl ) ; }
Delete all rules from the LPM table.
Delete all rules from the LPM table .
/* Zero used rules counter. */ /* Zero tbl24. */ /* Zero tbl8. */ /* init pool of free tbl8 indexes */ /* Delete all rules form the rules table. */