Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1250476
| From | Daniel Borkmann <daniel@iogearbox.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC] bpf: change bpf syacall to use u64 temp variables |
| Date | 2015-10-19 11:00 +0200 |
| Message-ID | <qlesr-7Po-29@gated-at.bofh.it> (permalink) |
| References | <qlcTD-5If-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 10/19/2015 09:10 AM, yalin wang wrote: > This patch change map_lookup_elem() and map_update_elem() function > to use u64 temp variable if the key_size or value_size is less than > u64, we don't need use kmalloc() for these small variables. > > Signed-off-by: yalin wang <yalin.wang2010@gmail.com> From an application PoV that has to make the bpf(2) syscall, how much do we actually gain from this? I'm curious, did you perform some benchmarks that show a noticeable difference? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC] bpf: change bpf syacall to use u64 temp variables yalin wang <yalin.wang2010@gmail.com> - 2015-10-19 09:20 +0200 Re: [RFC] bpf: change bpf syacall to use u64 temp variables Daniel Borkmann <daniel@iogearbox.net> - 2015-10-19 11:00 +0200 Re: [RFC] bpf: change bpf syacall to use u64 temp variables Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2015-10-19 21:10 +0200
csiph-web