Thread (23 messages) flat view 23 messages, 4 authors, 2021-02-17

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

From: John Fastabend <john.fastabend@gmail.com>
Date: 2021-02-15 19:04:44
Also in: bpf

Cong Wang wrote:
From: Cong Wang <redacted>

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_access().

Suggested-by: Jakub Sitnicki <jakub@cloudflare.com>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Lorenz Bauer <redacted>
Signed-off-by: Cong Wang <redacted>
---
Acked-by: John Fastabend <john.fastabend@gmail.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help