[PATCH] vti6: return GRE_KEY for vti6

2017-02-24 Thread David Forster
Align vti6 with vti by returning GRE_KEY flag. This enables iproute2 to display tunnel keys on "ip -6 tunnel show" Signed-off-by: David Forster --- net/ipv6/ip6_vti.c | 4 1 file changed, 4 insertions(+) diff --git a/net/ipv6/ip6_vti.c b/net/ipv6/ip6_vti.c index c795fee..644b

[PATCH net]ipv6: Provide ipv6 version of "disable_policy" sysctl

2017-02-23 Thread David Forster
This provides equivalent functionality to the existing ipv4 "disable_policy" systcl. ie. Allows IPsec processing to be skipped on terminating packets on a per-interface basis. Signed-off-by: David Forster --- include/linux/ipv6.h | 1 + include/uapi/linux/ipv6.h | 1 +

[PATCH iproute2] ip6tunnel: Align ipv6 tunnel key display with ipv4

2017-01-10 Thread David Forster
Show ipv6 tunnel keys on presence of GRE_KEY flag for tunnel types other than GRE. Aligns ipv6 behaviour with ipv4. Signed-off-by: dfors...@brocade.com --- ip/ip6tunnel.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/ip/ip6tunnel.c b/ip/ip6tunnel.c index

[PATCH] vti6: fix device register to report IFLA_INFO_KIND

2017-01-06 Thread David Forster
vti6 interface is registered before the rtnl_link_ops block is attached. As a result the resulting RTM_NEWLINK is missing IFLA_INFO_KIND. Re-order attachment of rtnl_link_ops block to fix. Signed-off-by: Dave Forster --- net/ipv6/ip6_vti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[PATCH] ipv4: panic in leaf_walk_rcu due to stale node pointer

2016-08-03 Thread David Forster
Panic occurs when issuing "cat /proc/net/route" whilst populating FIB with > 1M routes. Use of cached node pointer in fib_route_get_idx is unsafe. BUG: unable to handle kernel paging request at c90001630024 IP: [] leaf_walk_rcu+0x10/0xe0 PGD 11b08d067 PUD 11b08e067 PMD dac4b067 PTE 0 Oops