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

Function find_u32_range_rule

dpdk/app/test/test_acl.c:1634–1645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1632}
1633
1634static const struct rte_acl_ipv4vlan_rule *
1635find_u32_range_rule(uint32_t val)
1636{
1637 uint32_t i;
1638
1639 for (i = 0; i != RTE_DIM(acl_u32_range_test_rules); i++) {
1640 if (val >= acl_u32_range_test_rules[i].src_addr &&
1641 val <= acl_u32_range_test_rules[i].src_mask_len)
1642 return acl_u32_range_test_rules + i;
1643 }
1644 return NULL;
1645}
1646
1647static void
1648fill_u32_range_data(struct ipv4_7tuple tdata[], uint32_t start, uint32_t num)

Callers 1

fill_u32_range_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected