src/dpdk/lib/librte_lpm/rte_lpm6.c
static void
rebuild_lpm(struct rte_lpm6 *lpm)
{
	uint64_t next_hop;
	struct rte_lpm6_rule_key *rule_key;
	uint32_t iter = 0;

	while (rte_hash_iterate(lpm->rules_tbl, (void *) &rule_key,
			(void **) &next_hop, &iter) >= 0)
		rte_lpm6_add(lpm, rule_key->ip, rule_key->depth,
			(uint32_t) next_hop);
}
/*
 * Rebuild the entire LPM tree by reinserting all rules
 */
Rebuild the entire LPM tree by reinserting all rules
Rebuild the entire LPM tree by reinserting all rules
static void
rebuild_lpm(struct rte_lpm6 *lpm)
{
	uint64_t next_hop;
	struct rte_lpm6_rule_key *rule_key;
	uint32_t iter = 0;
	while (rte_hash_iterate(lpm->rules_tbl, (void *) &rule_key,
			(void **) &next_hop, &iter) >= 0)
		rte_lpm6_add(lpm, rule_key->ip, rule_key->depth,
			(uint32_t) next_hop);
}
static void rebuild_lpm ( struct rte_lpm6 * lpm ) { uint64_t next_hop ; struct rte_lpm6_rule_key * rule_key ; uint32_t iter = 0 ; while ( rte_hash_iterate ( lpm -> rules_tbl , ( void * ) & rule_key , ( void * * ) & next_hop , & iter ) >= 0 ) rte_lpm6_add ( lpm , rule_key -> ip , rule_key -> depth , ( uint32_t ) next_hop ) ; }
Rebuild the entire LPM tree by reinserting all rules
Rebuild the entire LPM tree by reinserting all rules