diff options
author | Simon Horman <simon.horman@netronome.com> | 2016-07-10 10:20:11 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-11 13:27:06 -0700 |
commit | aa9667e7f626232cde5310435dc96bfbe796f05c (patch) | |
tree | 244dda85eaeb736bb280a8e37c13156e01c2c081 /scripts/patch-kernel | |
parent | 4154cb40e71a7255bae0c67734fe85950c9254e5 (diff) | |
download | lwn-aa9667e7f626232cde5310435dc96bfbe796f05c.tar.gz lwn-aa9667e7f626232cde5310435dc96bfbe796f05c.zip |
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>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions