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

Function bpf_size

dpdk/lib/bpf/bpf_impl.h:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 rte_log(RTE_LOG_## lvl, rte_bpf_logtype, fmt, ##args)
33
34static inline size_t
35bpf_size(uint32_t bpf_op_sz)
36{
37 if (bpf_op_sz == BPF_B)
38 return sizeof(uint8_t);
39 else if (bpf_op_sz == BPF_H)
40 return sizeof(uint16_t);
41 else if (bpf_op_sz == BPF_W)
42 return sizeof(uint32_t);
43 else if (bpf_op_sz == EBPF_DW)
44 return sizeof(uint64_t);
45 return 0;
46}
47
48#endif /* BPF_IMPL_H */

Callers 5

eval_ld_mbufFunction · 0.85
eval_loadFunction · 0.85
eval_storeFunction · 0.85
emit_st_commonFunction · 0.85
emit_ld_mbufFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected