Re: [Patch bpf-next v3 3/5] bpf: compute data_end dynamically with JIT code

2021-02-15 Thread Jakub Sitnicki
On Sat, Feb 13, 2021 at 10:44 PM CET, Cong Wang wrote: > From: Cong Wang > > Currently, we compute ->data_end with a compile-time constant > offset of skb. But as Jakub pointed out, we can actually compute > it in eBPF JIT code at run-time, so that we can competely get > rid of ->data_end. This is

RE: [Patch bpf-next v3 3/5] bpf: compute data_end dynamically with JIT code

2021-02-15 Thread John Fastabend
Cong Wang wrote: > From: Cong Wang > > Currently, we compute ->data_end with a compile-time constant > offset of skb. But as Jakub pointed out, we can actually compute > it in eBPF JIT code at run-time, so that we can competely get > rid of ->data_end. This is similar to skb_shinfo(skb) computati

[Patch bpf-next v3 3/5] bpf: compute data_end dynamically with JIT code

2021-02-13 Thread Cong Wang
From: Cong Wang Currently, we compute ->data_end with a compile-time constant offset of skb. But as Jakub pointed out, we can actually compute it in eBPF JIT code at run-time, so that we can competely get rid of ->data_end. This is similar to skb_shinfo(skb) computation in bpf_convert_shinfo_acce