Re: [PATCH net-next v3 1/3] bpf: Refactor cgroups code in prep for new type

2016-11-28 Thread David Ahern
On 11/28/16 1:06 PM, Alexei Starovoitov wrote: > On Mon, Nov 28, 2016 at 07:48:48AM -0800, David Ahern wrote: >> Code move only; no functional change intended. > > not quite... > >> Signed-off-by: David Ahern > ... >> * @sk: The socken sending or receiving traffic >> @@ -153,11 +166,15 @@ int

Re: [PATCH net-next v3 1/3] bpf: Refactor cgroups code in prep for new type

2016-11-28 Thread Alexei Starovoitov
On Mon, Nov 28, 2016 at 07:48:48AM -0800, David Ahern wrote: > Code move only; no functional change intended. not quite... > Signed-off-by: David Ahern ... > * @sk: The socken sending or receiving traffic > @@ -153,11 +166,15 @@ int __cgroup_bpf_run_filter(struct sock *sk, > > prog = r

[PATCH net-next v3 1/3] bpf: Refactor cgroups code in prep for new type

2016-11-28 Thread David Ahern
Code move only; no functional change intended. Signed-off-by: David Ahern --- v3 - dropped the rename v2 - fix bpf_prog_run_clear_cb to bpf_prog_run_save_cb as caught by Daniel - rename BPF_PROG_TYPE_CGROUP_SKB and its cg_skb functions to BPF_PROG_TYPE_CGROUP and cgroup kernel/bpf/cgroup.c