Searched refs:ctx_off (Results 1 – 2 of 2) sorted by relevance
| /linux-4.4.14/net/core/ |
| D | filter.c | 1750 int src_reg, int ctx_off, in bpf_net_convert_ctx_access() argument 1756 switch (ctx_off) { in bpf_net_convert_ctx_access() 1844 ctx_off -= offsetof(struct __sk_buff, cb[0]); in bpf_net_convert_ctx_access() 1845 ctx_off += offsetof(struct sk_buff, cb); in bpf_net_convert_ctx_access() 1846 ctx_off += offsetof(struct qdisc_skb_cb, data); in bpf_net_convert_ctx_access() 1848 *insn++ = BPF_STX_MEM(BPF_W, dst_reg, src_reg, ctx_off); in bpf_net_convert_ctx_access() 1850 *insn++ = BPF_LDX_MEM(BPF_W, dst_reg, src_reg, ctx_off); in bpf_net_convert_ctx_access() 1854 ctx_off -= offsetof(struct __sk_buff, tc_classid); in bpf_net_convert_ctx_access() 1855 ctx_off += offsetof(struct sk_buff, cb); in bpf_net_convert_ctx_access() 1856 ctx_off += offsetof(struct qdisc_skb_cb, tc_classid); in bpf_net_convert_ctx_access() [all …]
|
| /linux-4.4.14/include/linux/ |
| D | bpf.h | 118 int src_reg, int ctx_off,
|