Simplify LPM6 lookup
@@ -314,12 +314,7 @@ lpm_lookup(lookup_table_t* t, uint8_t* key)
memcpy(key128, key, t->key_size);
uint8_t result;
-#if RTE_VERSION < RTE_VERSION_NUM(17, 05, 0, 0)
- // note: DPDK 17.05 changed next_hop to 32 bits
int ret = rte_lpm6_lookup(ext->rte_table, key128, &result);
-#else
- int ret = rte_lpm6_lookup_v20(ext->rte_table, key128, &result);
-#endif
return ret == 0 ? ext->content[result] : t->default_val;
}
return NULL;
