Re: [PATCH bpf-next v3 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 Tue, Apr 09, 2019 at 10:27:37AM -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 v3 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 10:27:37AM -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 v3 1/3] bpf: support input __sk_buff context in BPF_PROG_TEST_RUN

2019-04-09 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