esp4: Reorganize esp_output
authorSteffen Klassert <steffen.klassert@secunet.com>
Fri, 14 Apr 2017 08:06:33 +0000 (10:06 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 14 Apr 2017 08:06:33 +0000 (10:06 +0200)
commitfca11ebde3f0d1c637550a9b231caa385ce35749
tree52b18ae170138ecbdd2dbfd7d1add335d4e5c0af
parentf1fbed0e89303e6100085ea1dfb25d8413ca06ec
esp4: Reorganize esp_output

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

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/esp.h
net/ipv4/esp4.c
net/ipv4/esp4_offload.c