Searched refs:dst_reg (Results 1 – 1 of 1) sorted by relevance
/net/core/ |
D | filter.c | 152 static u32 convert_skb_access(int skb_field, int dst_reg, int src_reg, in convert_skb_access() argument 161 *insn++ = BPF_LDX_MEM(BPF_W, dst_reg, src_reg, in convert_skb_access() 166 *insn++ = BPF_LDX_MEM(BPF_B, dst_reg, src_reg, PKT_TYPE_OFFSET()); in convert_skb_access() 167 *insn++ = BPF_ALU32_IMM(BPF_AND, dst_reg, PKT_TYPE_MAX); in convert_skb_access() 169 *insn++ = BPF_ALU32_IMM(BPF_RSH, dst_reg, 5); in convert_skb_access() 176 *insn++ = BPF_LDX_MEM(BPF_H, dst_reg, src_reg, in convert_skb_access() 186 *insn++ = BPF_LDX_MEM(BPF_H, dst_reg, src_reg, in convert_skb_access() 189 *insn++ = BPF_ALU32_IMM(BPF_AND, dst_reg, in convert_skb_access() 193 *insn++ = BPF_ALU32_IMM(BPF_RSH, dst_reg, 12); in convert_skb_access() 195 *insn++ = BPF_ALU32_IMM(BPF_AND, dst_reg, 1); in convert_skb_access() [all …]
|