esp6: Reorganize esp_output
authorSteffen Klassert <steffen.klassert@secunet.com>
Fri, 14 Apr 2017 08:06:42 +0000 (10:06 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 14 Apr 2017 08:06:42 +0000 (10:06 +0200)
commit383d0350f2cc5e5b3a2003c46e15c0b98432037b
treef4b07c11f388f014a9819147a17c4d4c63e6224b
parentfca11ebde3f0d1c637550a9b231caa385ce35749
esp6: Reorganize esp_output

We need a fallback for ESP at layer 2, so split esp6_output
into generic functions that can be used at layer 3 and layer 2
and use them in esp_output. We also add esp6_xmit which is
used for the layer 2 fallback.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/esp.h
net/ipv6/esp6.c
net/ipv6/esp6_offload.c