Re: [PATCH net-next v2] tunnels: correct conditional build of MPLS and IPv6

2016-07-11 Thread David Miller
From: Simon Horman Date: Sun, 10 Jul 2016 10:20:11 +0900 > Using a combination if #if conditionals and goto labels to unwind > tunnel4_init seems unwieldy. This patch takes a simpler approach of > directly unregistering previously registered protocols when an error > occurs. > > This fixes a num

[PATCH net-next v2] tunnels: correct conditional build of MPLS and IPv6

2016-07-09 Thread Simon Horman
Using a combination if #if conditionals and goto labels to unwind tunnel4_init seems unwieldy. This patch takes a simpler approach of directly unregistering previously registered protocols when an error occurs. This fixes a number of problems with the current implementation including the potential