Re: [PATCH bpf-next v3 3/3] selftests: bpf: add selftest for __sk_buff context in BPF_PROG_TEST_RUN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux