xfrm: Remove inner/outer modes from output path
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 10 Mar 2023 09:40:32 +0000 (17:40 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 13 Mar 2023 10:51:13 +0000 (11:51 +0100)
commitf4796398f21b9844017a2dac883b1dd6ad6edd60
tree7ca7f4689216fb84aee08cbb034e874ab672c82c
parent5f24f41e8ea62a6a9095f9bbafb8b3aebe265c68
xfrm: Remove inner/outer modes from output path

The inner/outer modes were added to abstract out common code that
were once duplicated between IPv4 and IPv6.  As time went on the
abstractions have been removed and we are now left with empty
shells that only contain duplicate information.  These can be
removed one-by-one as the same information is already present
elsewhere in the xfrm_state object.

Just like the input-side, removing this from the output code
makes it possible to use transport-mode SAs underneath an
inter-family tunnel mode SA.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_output.c