Home
last modified time | relevance | path

Searched refs:bpf_src (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/core/
H A Dfilter.c569 u8 bpf_src; in bpf_convert_filter() local
730 bpf_src = BPF_X; in bpf_convert_filter()
734 bpf_src = BPF_SRC(fp->code); in bpf_convert_filter()
735 insn->src_reg = bpf_src == BPF_X ? BPF_REG_X : 0; in bpf_convert_filter()
740 insn->code = BPF_JMP | BPF_OP(fp->code) | bpf_src; in bpf_convert_filter()
750 insn->code = BPF_JMP | BPF_JNE | bpf_src; in bpf_convert_filter()
753 insn->code = BPF_JMP | BPF_JLE | bpf_src; in bpf_convert_filter()
756 insn->code = BPF_JMP | BPF_JLT | bpf_src; in bpf_convert_filter()
769 insn->code = BPF_JMP | BPF_OP(fp->code) | bpf_src; in bpf_convert_filter()