- return bucket->flows[index];
-}
-
-static u32 flow_hash(const struct dp_table *table,
- const struct odp_flow_key *key)
-{
- return jhash2((u32*)key, sizeof *key / sizeof(u32), table->hash_seed);
-}
-
-/**
- * dp_table_lookup - searches flow table for a matching flow
- * @table: flow table to search
- * @key: flow key for which to search
- *
- * Searches @table for a flow whose key is equal to @key. Returns the flow if
- * successful, otherwise %NULL.
- */
-struct sw_flow *dp_table_lookup(struct dp_table *table,
- const struct odp_flow_key *key)
-{
- return lookup_flow(table, flow_hash(table, key), key);