Files
kernel_arpi/include/uapi/linux
Alexei Starovoitov d691f9e8d4 bpf: allow programs to write to certain skb fields
allow programs read/write skb->mark, tc_index fields and
((struct qdisc_skb_cb *)cb)->data.

mark and tc_index are generically useful in TC.
cb[0]-cb[4] are primarily used to pass arguments from one
program to another called via bpf_tail_call() which can
be seen in sockex3_kern.c example.

All fields of 'struct __sk_buff' are readable to socket and tc_cls_act progs.
mark, tc_index are writeable from tc_cls_act only.
cb[0]-cb[4] are writeable by both sockets and tc_cls_act.

Add verifier tests and improve sample code.

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-06-07 02:01:33 -07:00
..
2015-02-14 17:05:03 +00:00
2015-04-21 16:16:02 -04:00
2015-02-23 09:59:07 -06:00
2015-03-06 21:50:02 -05:00
2015-04-12 21:25:13 -04:00
2015-05-13 15:43:00 -04:00
2015-05-25 13:25:35 -04:00
2015-02-17 14:34:51 -08:00
2015-05-09 22:15:31 -04:00
2015-04-23 15:16:14 -04:00
2015-03-05 22:08:42 -05:00
2015-03-29 12:13:52 +10:30
2015-03-29 12:13:52 +10:30
2015-03-31 13:58:35 -04:00