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

Function acl_ipv4vlan_check_rule

dpdk/app/test/test_acl.c:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86static int
87acl_ipv4vlan_check_rule(const struct rte_acl_ipv4vlan_rule *rule)
88{
89 if (rule->src_port_low > rule->src_port_high ||
90 rule->dst_port_low > rule->dst_port_high ||
91 rule->src_mask_len > BIT_SIZEOF(rule->src_addr) ||
92 rule->dst_mask_len > BIT_SIZEOF(rule->dst_addr))
93 return -EINVAL;
94 return 0;
95}
96
97static void
98acl_ipv4vlan_convert_rule(const struct rte_acl_ipv4vlan_rule *ri,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected