Re: [RFC v3 net-next 3/5] ebpf: fix bpf_msg_pull_data

2018-08-26 Thread Tushar Dave
On 08/24/2018 06:02 PM, John Fastabend wrote: On 08/17/2018 04:08 PM, Tushar Dave wrote: Like sockmap (sk_msg), socksg also deals with struct scatterlist therefore socksg programs can use existing bpf helper bpf_msg_pull_data to access packet data contained in struct scatterlist. While doing

Re: [RFC v3 net-next 3/5] ebpf: fix bpf_msg_pull_data

2018-08-24 Thread John Fastabend
On 08/17/2018 04:08 PM, Tushar Dave wrote: > Like sockmap (sk_msg), socksg also deals with struct scatterlist > therefore socksg programs can use existing bpf helper bpf_msg_pull_data > to access packet data contained in struct scatterlist. While doing some > prelimnary testing, there are couple

[RFC v3 net-next 3/5] ebpf: fix bpf_msg_pull_data

2018-08-17 Thread Tushar Dave
Like sockmap (sk_msg), socksg also deals with struct scatterlist therefore socksg programs can use existing bpf helper bpf_msg_pull_data to access packet data contained in struct scatterlist. While doing some prelimnary testing, there are couple of issues found with bpf_msg_pull_data that are