Skip to content

Instantly share code, notes, and snippets.

/* classifies generated packets using build contexts */
static int acl_classify(void)
{
struct rte_acl_ctx* acl_ctx = g_acl_ctx;
for (int i = 0; i < g_bench_config.classifications_nb; i++)
{
// get pointer to beginning of 5tuple in ipv4_hdr
const uint8_t* packet_5tuple_hdr = ((const uint8_t*)packet_ctx->ipv4header + OFF_IPV42PROTO);
u_int32_t result;