Files
tegra-linux-noble/include/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-05-26 14:03:45 +03:00
2015-03-29 16:17:10 +01:00
2015-05-30 23:35:34 -07:00
2015-04-07 11:17:34 +02:00
2015-04-17 09:03:53 -04:00
2015-05-04 13:09:55 -06:00
2015-04-17 08:31:12 -06:00
2015-04-03 16:18:02 +02:00
2015-05-14 17:55:51 -07:00
2015-04-14 16:49:05 -07:00
2015-03-31 12:04:12 +02:00
2015-05-09 22:15:31 -04:00
2015-04-23 14:36:28 -04:00
2015-05-27 14:19:44 -04:00
2015-04-12 21:03:31 +02:00
2015-04-11 15:53:35 -04:00
2015-05-10 19:26:37 +02:00
2015-04-11 22:29:44 -04:00
2015-04-15 16:35:20 -07:00