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

Function rte_bpf_exec_burst

dpdk/lib/bpf/bpf_exec.c:478–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478uint32_t
479rte_bpf_exec_burst(const struct rte_bpf *bpf, void *ctx[], uint64_t rc[],
480 uint32_t num)
481{
482 uint32_t i;
483 uint64_t reg[EBPF_REG_NUM];
484 uint64_t stack[MAX_BPF_STACK_SIZE / sizeof(uint64_t)];
485
486 for (i = 0; i != num; i++) {
487
488 reg[EBPF_REG_1] = (uintptr_t)ctx[i];
489 reg[EBPF_REG_10] = (uintptr_t)(stack + RTE_DIM(stack));
490
491 rc[i] = bpf_exec(bpf, reg);
492 }
493
494 return i;
495}
496
497uint64_t
498rte_bpf_exec(const struct rte_bpf *bpf, void *ctx)

Callers 4

pdump_copyFunction · 0.85
pkt_filter_vmFunction · 0.85
pkt_filter_mb_vmFunction · 0.85
rte_bpf_execFunction · 0.85

Calls 1

bpf_execFunction · 0.85

Tested by

no test coverage detected