From: Randy Dunlap <rdunlap@infradead.org> Date: 2016-03-09 16:44:34
On 03/08/16 21:38, Stephen Rothwell wrote:
Hi all,
Changes since 20160308:
on x86_64:
../net/core/filter.c: In function 'bpf_skb_get_tunnel_opt':
../net/core/filter.c:1824:2: error: implicit declaration of function 'ip_tunnel_info_opts_get' [-Werror=implicit-function-declaration]
ip_tunnel_info_opts_get(to, info);
^
../net/core/filter.c: In function 'bpf_skb_set_tunnel_opt':
../net/core/filter.c:1918:2: error: implicit declaration of function 'ip_tunnel_info_opts_set' [-Werror=implicit-function-declaration]
ip_tunnel_info_opts_set(info, from, size);
^
Full randconfig file is attached.
--
~Randy
From: Daniel Borkmann <daniel@iogearbox.net> Date: 2016-03-09 16:48:37
On 03/09/2016 05:44 PM, Randy Dunlap wrote:
On 03/08/16 21:38, Stephen Rothwell wrote:
quoted
Hi all,
Changes since 20160308:
on x86_64:
../net/core/filter.c: In function 'bpf_skb_get_tunnel_opt':
../net/core/filter.c:1824:2: error: implicit declaration of function 'ip_tunnel_info_opts_get' [-Werror=implicit-function-declaration]
ip_tunnel_info_opts_get(to, info);
^
../net/core/filter.c: In function 'bpf_skb_set_tunnel_opt':
../net/core/filter.c:1918:2: error: implicit declaration of function 'ip_tunnel_info_opts_set' [-Werror=implicit-function-declaration]
ip_tunnel_info_opts_set(info, from, size);
^
Full randconfig file is attached.
Already fixed with net-next commit e28e87ed474c ("ip_tunnel, bpf:
ip_tunnel_info_opts_{get, set} depends on CONFIG_INET").
Thanks,
Daniel
From: Randy Dunlap <rdunlap@infradead.org> Date: 2016-03-09 17:07:20
On 03/09/16 08:48, Daniel Borkmann wrote:
On 03/09/2016 05:44 PM, Randy Dunlap wrote:
quoted
On 03/08/16 21:38, Stephen Rothwell wrote:
quoted
Hi all,
Changes since 20160308:
on x86_64:
../net/core/filter.c: In function 'bpf_skb_get_tunnel_opt':
../net/core/filter.c:1824:2: error: implicit declaration of function 'ip_tunnel_info_opts_get' [-Werror=implicit-function-declaration]
ip_tunnel_info_opts_get(to, info);
^
../net/core/filter.c: In function 'bpf_skb_set_tunnel_opt':
../net/core/filter.c:1918:2: error: implicit declaration of function 'ip_tunnel_info_opts_set' [-Werror=implicit-function-declaration]
ip_tunnel_info_opts_set(info, from, size);
^
Full randconfig file is attached.
Already fixed with net-next commit e28e87ed474c ("ip_tunnel, bpf:
ip_tunnel_info_opts_{get, set} depends on CONFIG_INET").
Thanks,
Daniel
Hi Daniel,
Is that patch on the netdev mailing list or patchwork?
I can't find it.
Does it handle where net/Kconfig symbol NET selects BPF unconditionally?
thanks,
--
~Randy
From: Randy Dunlap <rdunlap@infradead.org> Date: 2016-03-09 17:18:18
On 03/09/16 09:07, Randy Dunlap wrote:
On 03/09/16 08:48, Daniel Borkmann wrote:
quoted
On 03/09/2016 05:44 PM, Randy Dunlap wrote:
quoted
On 03/08/16 21:38, Stephen Rothwell wrote:
quoted
Hi all,
Changes since 20160308:
on x86_64:
../net/core/filter.c: In function 'bpf_skb_get_tunnel_opt':
../net/core/filter.c:1824:2: error: implicit declaration of function 'ip_tunnel_info_opts_get' [-Werror=implicit-function-declaration]
ip_tunnel_info_opts_get(to, info);
^
../net/core/filter.c: In function 'bpf_skb_set_tunnel_opt':
../net/core/filter.c:1918:2: error: implicit declaration of function 'ip_tunnel_info_opts_set' [-Werror=implicit-function-declaration]
ip_tunnel_info_opts_set(info, from, size);
^
Full randconfig file is attached.
Already fixed with net-next commit e28e87ed474c ("ip_tunnel, bpf:
ip_tunnel_info_opts_{get, set} depends on CONFIG_INET").
Thanks,
Daniel
Hi Daniel,
Is that patch on the netdev mailing list or patchwork?
I can't find it.
Does it handle where net/Kconfig symbol NET selects BPF unconditionally?
I got the patch from git and tested it. Works. Thanks.
--
~Randy
From: Daniel Borkmann <daniel@iogearbox.net> Date: 2016-03-09 17:19:34
On 03/09/2016 06:07 PM, Randy Dunlap wrote:
On 03/09/16 08:48, Daniel Borkmann wrote:
quoted
On 03/09/2016 05:44 PM, Randy Dunlap wrote:
quoted
On 03/08/16 21:38, Stephen Rothwell wrote:
quoted
Hi all,
Changes since 20160308:
on x86_64:
../net/core/filter.c: In function 'bpf_skb_get_tunnel_opt':
../net/core/filter.c:1824:2: error: implicit declaration of function 'ip_tunnel_info_opts_get' [-Werror=implicit-function-declaration]
ip_tunnel_info_opts_get(to, info);
^
../net/core/filter.c: In function 'bpf_skb_set_tunnel_opt':
../net/core/filter.c:1918:2: error: implicit declaration of function 'ip_tunnel_info_opts_set' [-Werror=implicit-function-declaration]
ip_tunnel_info_opts_set(info, from, size);
^
Full randconfig file is attached.
Already fixed with net-next commit e28e87ed474c ("ip_tunnel, bpf:
ip_tunnel_info_opts_{get, set} depends on CONFIG_INET").
[...]
Is that patch on the netdev mailing list or patchwork?
I can't find it.
From: David Miller <davem@davemloft.net> Date: 2016-03-09 17:20:28
From: Randy Dunlap <rdunlap@infradead.org>
Date: Wed, 9 Mar 2016 08:44:20 -0800
on x86_64:
../net/core/filter.c: In function 'bpf_skb_get_tunnel_opt':
../net/core/filter.c:1824:2: error: implicit declaration of function 'ip_tunnel_info_opts_get' [-Werror=implicit-function-declaration]
ip_tunnel_info_opts_get(to, info);
^
../net/core/filter.c: In function 'bpf_skb_set_tunnel_opt':
../net/core/filter.c:1918:2: error: implicit declaration of function 'ip_tunnel_info_opts_set' [-Werror=implicit-function-declaration]
ip_tunnel_info_opts_set(info, from, size);
^
Should have been fixed last night by:
====================
From e28e87ed474c5a0b378c66fb85efc8e487f4f63f Mon Sep 17 00:00:00 2001
From: Daniel Borkmann <daniel@iogearbox.net>
Date: Tue, 8 Mar 2016 23:36:03 +0100
Subject: [PATCH 1/4] ip_tunnel, bpf: ip_tunnel_info_opts_{get, set} depends on
CONFIG_INET
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 <redacted>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
---
include/net/ip_tunnels.h | 11 +++++++++++
1 file changed, 11 insertions(+)