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

Function select_tx_callback

dpdk/lib/bpf/bpf_pkt.c:412–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412static rte_tx_callback_fn
413select_tx_callback(enum rte_bpf_arg_type type, uint32_t flags)
414{
415 if (flags & RTE_BPF_ETH_F_JIT) {
416 if (type == RTE_BPF_ARG_PTR)
417 return bpf_tx_callback_jit;
418 else if (type == RTE_BPF_ARG_PTR_MBUF)
419 return bpf_tx_callback_mb_jit;
420 } else if (type == RTE_BPF_ARG_PTR)
421 return bpf_tx_callback_vm;
422 else if (type == RTE_BPF_ARG_PTR_MBUF)
423 return bpf_tx_callback_mb_vm;
424
425 return NULL;
426}
427
428/*
429 * helper function to perform BPF unload for given port/queue.

Callers 1

bpf_eth_elf_loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected