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-06-07 02:01:33 -07:00
2015-02-19 12:39:03 -06:00
2015-05-08 11:59:40 +02:00
2015-04-17 09:04:08 -04:00
2015-04-24 20:57:06 +02:00
2015-04-13 23:57:20 +02:00
2015-05-08 11:53:55 +02:00
2015-04-10 12:01:59 +02:00
2015-04-21 09:33:10 -07:00
2015-04-14 19:33:59 -07:00
2015-05-22 15:15:30 -07:00
2015-05-13 10:19:35 +02:00
2015-05-31 21:44:44 -07:00
2015-04-11 22:27:55 -04:00
2015-04-26 17:22:07 -07:00
2015-04-15 15:06:55 -04:00
2015-04-26 17:22:07 -07:00
2015-04-22 14:49:23 -07:00
2015-02-11 20:07:47 -08:00
2015-04-26 17:22:07 -07:00
2015-04-15 16:35:22 -07:00
2015-04-15 16:35:25 -07:00
2015-02-12 18:54:12 -08:00
2015-03-09 15:43:00 +01:00
2015-04-14 13:36:04 -07:00
2015-04-14 16:49:03 -07:00
2015-04-15 16:35:22 -07:00
2015-04-12 21:03:31 +02:00
2015-04-12 20:58:24 +02:00
2014-11-19 15:25:26 -05:00
2015-04-17 09:04:11 -04:00
2015-02-24 08:41:07 +01:00
2015-04-15 16:35:22 -07:00
2015-04-15 16:35:22 -07:00
2015-01-14 15:07:32 +01:00
2015-04-23 16:52:01 +02:00
2014-12-10 17:41:17 -08:00
2015-02-13 21:21:42 -08:00
2015-04-30 09:35:41 -07:00
2015-05-09 03:29:24 +09:30
2015-01-06 11:04:29 -08:00
2014-12-04 14:34:54 -05:00
2015-02-13 21:21:38 -08:00
2014-12-22 15:40:48 +01:00
2015-04-15 13:31:23 +09:30
2014-12-16 15:53:03 -08:00
2015-04-17 09:04:06 -04:00
2015-02-13 21:21:38 -08:00
2015-04-17 09:04:06 -04:00
2015-01-17 10:02:23 +13:00
2015-04-15 16:35:23 -07:00
2015-04-15 15:06:55 -04:00
2015-04-15 16:35:22 -07:00
2015-05-09 17:35:05 -04:00
2015-04-17 09:04:06 -04:00
2015-04-19 13:19:23 -07:00
2015-03-11 13:20:25 -07:00
2015-02-09 15:24:03 -08:00
2014-12-13 12:42:48 -08:00
2015-04-15 16:35:22 -07:00
2015-04-17 09:04:07 -04:00
2014-12-10 17:41:10 -08:00
2015-04-17 09:04:08 -04:00
2015-01-18 01:03:45 -05:00
2014-12-05 17:19:27 -06:00
2014-12-17 12:31:40 -08:00
2014-12-17 12:31:40 -08:00
2014-12-04 14:34:47 -05:00
2015-05-19 10:57:03 -07:00
2015-04-06 11:16:04 -04:00