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

2019-04-05 Thread Stanislav Fomichev
On 04/05, Martin Lau wrote: > On Thu, Apr 04, 2019 at 11:51:31AM -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 1/3] bpf: support input __sk_buff context in BPF_PROG_TEST_RUN

2019-04-05 Thread Martin Lau
On Thu, Apr 04, 2019 at 11:51:31AM -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 1/3] bpf: support input __sk_buff context in BPF_PROG_TEST_RUN

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