MCPcopy Create free account
hub / github.com/F-Stack/f-stack / table_rule_find

Function table_rule_find

dpdk/examples/ip_pipeline/pipeline.c:995–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

993}
994
995struct table_rule *
996table_rule_find(struct table *table,
997 struct table_rule_match *match)
998{
999 struct table_rule *rule;
1000
1001 TAILQ_FOREACH(rule, &table->rules, node)
1002 if (memcmp(&rule->match, match, sizeof(*match)) == 0)
1003 return rule;
1004
1005 return NULL;
1006}
1007
1008void
1009table_rule_add(struct table *table,

Callers 7

table_rule_addFunction · 0.85
table_rule_add_bulkFunction · 0.85
table_rule_deleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected