This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; |