On Tue, Mar 08, 2016 at 11:36:03PM +0100, Daniel Borkmann wrote: > Helpers like ip_tunnel_info_opts_{get,set}() are only available if > CONFIG_INET is set, thus add an empty definition into the header for > the !CONFIG_INET case, where already other empty inline helpers are > defined. > > This avoids ifdef kludge inside filter.c, but also vxlan and geneve > themself where this facility can only be used with, depend on INET > being set. For the !INET case TUNNEL_OPTIONS_PRESENT would never be > set in flags. > > Fixes: 14ca0751c96f ("bpf: support for access to tunnel options") > Reported-by: Fengguang Wu <fengguang...@intel.com> > Signed-off-by: Daniel Borkmann <dan...@iogearbox.net>
Acked-by: Alexei Starovoitov <a...@kernel.org>