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

Function parse_acl_alg

dpdk/examples/l3fwd/l3fwd_acl.c:617–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615}
616
617enum rte_acl_classify_alg
618parse_acl_alg(const char *alg)
619{
620 uint32_t i;
621
622 for (i = 0; i != RTE_DIM(acl_alg); i++) {
623 if (strcmp(alg, acl_alg[i].name) == 0)
624 return acl_alg[i].alg;
625 }
626
627 return RTE_ACL_CLASSIFY_DEFAULT;
628}
629
630int
631usage_acl_alg(char *buf, size_t sz)

Callers 1

l3fwd_set_algFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected