Re: [PATCH bpf-next 0/2] libbpf: adding af_xdp support

2018-12-11 Thread Daniel Borkmann
On 12/11/2018 01:10 AM, Jakub Kicinski wrote: > On Mon, 10 Dec 2018 16:34:43 +0100, Magnus Karlsson wrote: >> * Is it ok to have static inline functions in this library? They are >> currently static inline for performance reasons, but maybe -flto >> could fix this but not everyone uses this. >

Re: [PATCH bpf-next 0/2] libbpf: adding af_xdp support

2018-12-10 Thread Jakub Kicinski
On Mon, 10 Dec 2018 16:34:43 +0100, Magnus Karlsson wrote: > * Is it ok to have static inline functions in this library? They are > currently static inline for performance reasons, but maybe -flto > could fix this but not everyone uses this. I'd think so, we have few static inlines in kernel u

[PATCH bpf-next 0/2] libbpf: adding af_xdp support

2018-12-10 Thread Magnus Karlsson
This patch proposes to add AF_XDP support to libbpf. The main reason for this is to facilitate writing applications that use AF_XDP by offering higher-level APIs that hide many of the details of the AF_XDP uapi. This is in the same vein as libbpf facilitates XDP adoption by offering easy-to-use hig