Lines Matching refs:skb
57 int pem(struct __sk_buff *skb) { in pem() argument
67 if (skb->tc_index == 0) { in pem()
68 skb->tc_index = 1; in pem()
69 skb->cb[0] = skb->cb[1] = 0; in pem()
72 meta.prog_id = skb->cb[0]; in pem()
74 meta.rx_port_id = skb->cb[1]; in pem()
78 ifindex = skb->ingress_ifindex; in pem()
84 skb->cb[0] = dest_p->prog_id; in pem()
85 skb->cb[1] = dest_p->port_id; in pem()
86 jump.call(skb, dest_p->prog_id); in pem()
101 bpf_clone_redirect(skb, *ifindex_p, 0); in pem()
108 static int br_common(struct __sk_buff *skb, int which_br) { in br_common() argument
127 if (skb->tc_index == 1) { in br_common()
129 skb->tc_index = 2; in br_common()
137 bpf_clone_redirect(skb, *rtrif_p, 0); in br_common()
145 bpf_clone_redirect(skb, *rtrif_p, 0); in br_common()
151 skb->tc_index = 1; in br_common()
210 skb->cb[0] = dest_p->prog_id; in br_common()
211 skb->cb[1] = dest_p->port_id; in br_common()
212 jump.call(skb, dest_p->prog_id); in br_common()
220 int br1(struct __sk_buff *skb) { in br1() argument
221 return br_common(skb, 1); in br1()
224 int br2(struct __sk_buff *skb) { in br2() argument
225 return br_common(skb, 2); in br2()