Re: [PATCH v2 net-next 2/2] bpf: allow programs to write to certain skb fields

2015-06-07 Thread David Miller
From: Alexei Starovoitov Date: Thu, 4 Jun 2015 10:11:54 -0700 > 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 call

[PATCH v2 net-next 2/2] bpf: allow programs to write to certain skb fields

2015-06-04 Thread Alexei Starovoitov
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 fiel