| 84 | } |
| 85 | |
| 86 | static int |
| 87 | acl_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 | |
| 97 | static void |
| 98 | acl_ipv4vlan_convert_rule(const struct rte_acl_ipv4vlan_rule *ri, |
no outgoing calls
no test coverage detected