Re: [PATCH bpf-next 0/3] add size field to sk_msg_md

2018-12-18 Thread Daniel Borkmann
On 12/17/2018 12:47 AM, John Fastabend wrote: > This adds a size field to the sk_msg_md data structure used by SK_MSG > programs. Without this in the zerocopy case and in the copy case > where multiple iovs are in use its difficult to know how much data > can be pulled in. The normal method of read

Re: [PATCH bpf-next 0/3] add size field to sk_msg_md

2018-12-18 Thread Martin Lau
On Sun, Dec 16, 2018 at 03:47:03PM -0800, John Fastabend wrote: > This adds a size field to the sk_msg_md data structure used by SK_MSG > programs. Without this in the zerocopy case and in the copy case > where multiple iovs are in use its difficult to know how much data > can be pulled in. The nor

[PATCH bpf-next 0/3] add size field to sk_msg_md

2018-12-16 Thread John Fastabend
This adds a size field to the sk_msg_md data structure used by SK_MSG programs. Without this in the zerocopy case and in the copy case where multiple iovs are in use its difficult to know how much data can be pulled in. The normal method of reading data and data_end only give the current contiguous