Re: [PATCH bpf-next 1/3] bpf: sockmap, metadata support for reporting size of msg

2018-12-19 Thread John Fastabend
On 12/19/18 6:49 PM, Alexei Starovoitov wrote: > On Sun, Dec 16, 2018 at 03:47:04PM -0800, John Fastabend wrote: >> This adds metadata to sk_msg_md for BPF programs to read the sk_msg >> size. >> >> When the SK_MSG program is running under an application that is using >> sendfile the data is not co

Re: [PATCH bpf-next 1/3] bpf: sockmap, metadata support for reporting size of msg

2018-12-19 Thread Alexei Starovoitov
On Sun, Dec 16, 2018 at 03:47:04PM -0800, John Fastabend wrote: > This adds metadata to sk_msg_md for BPF programs to read the sk_msg > size. > > When the SK_MSG program is running under an application that is using > sendfile the data is not copied into sk_msg buffers by default. Rather > the BPF

[PATCH bpf-next 1/3] bpf: sockmap, metadata support for reporting size of msg

2018-12-16 Thread John Fastabend
This adds metadata to sk_msg_md for BPF programs to read the sk_msg size. When the SK_MSG program is running under an application that is using sendfile the data is not copied into sk_msg buffers by default. Rather the BPF program uses sk_msg_pull_data to read the bytes in. This avoids doing the c