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

Function acl_check_rule

dpdk/lib/acl/rte_acl.c:446–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446static int
447acl_check_rule(const struct rte_acl_rule_data *rd)
448{
449 if ((RTE_LEN2MASK(RTE_ACL_MAX_CATEGORIES, typeof(rd->category_mask)) &
450 rd->category_mask) == 0 ||
451 rd->priority > RTE_ACL_MAX_PRIORITY ||
452 rd->priority < RTE_ACL_MIN_PRIORITY)
453 return -EINVAL;
454 return 0;
455}
456
457int
458rte_acl_add_rules(struct rte_acl_ctx *ctx, const struct rte_acl_rule *rules,

Callers 1

rte_acl_add_rulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected