Simon Horman aa9667e7f6 tunnels: correct conditional build of MPLS and IPv6
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 presence of labels when they are unused
and the potential absence of unregister code when it is needed.

Fixes: 8afe97e5d416 ("tunnels: support MPLS over IPv4 tunnels")
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-07-11 13:27:06 -07:00
..
2016-05-27 15:26:11 -07:00
2016-06-28 05:26:14 -04:00
2016-07-05 14:08:47 -07:00
2016-05-29 22:33:25 -07:00
2016-07-06 11:23:54 +01:00
2016-07-11 13:25:39 -07:00
2016-06-09 23:41:03 -07:00
2016-05-08 23:46:14 -04:00