Re: [bpf-next PATCH v5 4/5] bpf, selftests: add sk_msg helpers load and attach test

2020-05-26 Thread Andrii Nakryiko
On Sun, May 24, 2020 at 9:51 AM John Fastabend wrote: > > The test itself is not particularly useful but it encodes a common > pattern we have. > > Namely do a sk storage lookup then depending on data here decide if > we need to do more work or alternatively allow packet to PASS. Then > if we need

[bpf-next PATCH v5 4/5] bpf, selftests: add sk_msg helpers load and attach test

2020-05-24 Thread John Fastabend
The test itself is not particularly useful but it encodes a common pattern we have. Namely do a sk storage lookup then depending on data here decide if we need to do more work or alternatively allow packet to PASS. Then if we need to do more work consult task_struct for more information about the