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

Function usage_acl_alg

dpdk/examples/l3fwd/l3fwd_acl.c:630–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628}
629
630int
631usage_acl_alg(char *buf, size_t sz)
632{
633 uint32_t i, n, rc, tn;
634
635 n = 0;
636 tn = 0;
637 for (i = 0; i < RTE_DIM(acl_alg); i++) {
638 rc = snprintf(buf + n, sz - n,
639 i == RTE_DIM(acl_alg) - 1 ? "%s" : "%s|",
640 acl_alg[i].name);
641 tn += rc;
642 if (rc < sz - n)
643 n += rc;
644 }
645
646 return tn;
647}
648
649static const char *
650str_acl_alg(enum rte_acl_classify_alg alg)

Callers 1

print_usageFunction · 0.85

Calls 1

snprintfFunction · 0.85

Tested by

no test coverage detected