Re: [PATCH bpf-next v2 1/3] bpf: support input __sk_buff context in BPF_PROG_TEST_RUN

2019-04-09 Thread Martin Lau
On Tue, Apr 09, 2019 at 09:08:12AM -0700, Stanislav Fomichev wrote: > On 04/09, Martin Lau wrote: > > On Mon, Apr 08, 2019 at 09:04:30AM -0700, Stanislav Fomichev wrote: > > > Add new set of arguments to bpf_attr for BPF_PROG_TEST_RUN: > > > * ctx_in/ctx_size_in - input context > > > * ctx_out/ctx_

Re: [PATCH bpf-next v2 1/3] bpf: support input __sk_buff context in BPF_PROG_TEST_RUN

2019-04-09 Thread Stanislav Fomichev
On 04/09, Martin Lau wrote: > On Mon, Apr 08, 2019 at 09:04:30AM -0700, Stanislav Fomichev wrote: > > Add new set of arguments to bpf_attr for BPF_PROG_TEST_RUN: > > * ctx_in/ctx_size_in - input context > > * ctx_out/ctx_size_out - output context > > > > The intended use case is to pass some meta

Re: [PATCH bpf-next v2 1/3] bpf: support input __sk_buff context in BPF_PROG_TEST_RUN

2019-04-08 Thread Martin Lau
On Mon, Apr 08, 2019 at 09:04:30AM -0700, Stanislav Fomichev wrote: > Add new set of arguments to bpf_attr for BPF_PROG_TEST_RUN: > * ctx_in/ctx_size_in - input context > * ctx_out/ctx_size_out - output context > > The intended use case is to pass some meta data to the test runs that > operate on

[PATCH bpf-next v2 1/3] bpf: support input __sk_buff context in BPF_PROG_TEST_RUN

2019-04-08 Thread Stanislav Fomichev
Add new set of arguments to bpf_attr for BPF_PROG_TEST_RUN: * ctx_in/ctx_size_in - input context * ctx_out/ctx_size_out - output context The intended use case is to pass some meta data to the test runs that operate on skb (this has being brought up on recent LPC). For programs that use bpf_prog_t