[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190409182906.htjo7u3vmuo2sawu@kafai-mbp>
Date: Tue, 9 Apr 2019 18:29:07 +0000
From: Martin Lau <kafai@...com>
To: Stanislav Fomichev <sdf@...gle.com>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"bpf@...r.kernel.org" <bpf@...r.kernel.org>,
"davem@...emloft.net" <davem@...emloft.net>,
"ast@...nel.org" <ast@...nel.org>,
"daniel@...earbox.net" <daniel@...earbox.net>
Subject: Re: [PATCH bpf-next v3 3/3] selftests: bpf: add selftest for
__sk_buff context in BPF_PROG_TEST_RUN
On Tue, Apr 09, 2019 at 10:27:39AM -0700, Stanislav Fomichev wrote:
> Simple test that sets cb to {1,2,3,4,5} and priority to 6, runs bpf
> program that fails if cb is not what we expect and increments cb[i] and
> priority. When the test finishes, we check that cb is now {2,3,4,5,6}
> and priority is 7.
>
> We also test the sanity checks:
> * ctx_in is provided, but ctx_size_in is zero (same for
> ctx_out/ctx_size_out)
> * unexpected non-zero fields in __sk_buff return EINVAL
Acked-by: Martin KaFai Lau <kafai@...com>
Powered by blists - more mailing lists