[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181218184408.td6tfoi6durumnsy@kafai-mbp.dhcp.thefacebook.com>
Date: Tue, 18 Dec 2018 18:44:12 +0000
From: Martin Lau <kafai@...com>
To: John Fastabend <john.fastabend@...il.com>
CC: "daniel@...earbox.net" <daniel@...earbox.net>,
"ast@...nel.org" <ast@...nel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH bpf-next 0/3] add size field to sk_msg_md
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 normal method of reading data and data_end
> only give the current contiguous buffer. BPF programs can attempt to
> pull in extra data but have to guess if it exists. This can result
> in multiple "guesses" its much better if we know upfront the size
> of the sk_msg.
Acked-by: Martin KaFai Lau <kafai@...com>
Powered by blists - more mailing lists