| 32 | rte_log(RTE_LOG_## lvl, rte_bpf_logtype, fmt, ##args) |
| 33 | |
| 34 | static inline size_t |
| 35 | bpf_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 */ |
no outgoing calls
no test coverage detected