Re: [PATCH net] bpf: add missing map_flags to bpf_map_show_fdinfo

2016-03-25 Thread David Miller
From: Daniel Borkmann Date: Fri, 25 Mar 2016 00:30:25 +0100 > Add map_flags attribute to bpf_map_show_fdinfo(), so that tools like > tc can check for them when loading objects from a pinned entry, e.g. > if user intent wrt allocation (BPF_F_NO_PREALLOC) is different to the > pinned object, it can

[PATCH net] bpf: add missing map_flags to bpf_map_show_fdinfo

2016-03-24 Thread Daniel Borkmann
Add map_flags attribute to bpf_map_show_fdinfo(), so that tools like tc can check for them when loading objects from a pinned entry, e.g. if user intent wrt allocation (BPF_F_NO_PREALLOC) is different to the pinned object, it can bail out. Follow-up to 6c9059817432 ("bpf: pre-allocate hash map elem