ESP: Export esp_output_fill_trailer function
authorRaed Salem <raeds@mellanox.com>
Wed, 19 Feb 2020 12:49:57 +0000 (14:49 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 19 Feb 2020 12:52:32 +0000 (13:52 +0100)
commitdda520c4d4623701dd70cf7b40d29a4eed232d0f
tree491bdd080cb73722a8ebfe86282c494304969205
parenta4c278d1bee1e2add3f12705401c1c5e6470f291
ESP: Export esp_output_fill_trailer function

The esp fill trailer method is identical for both
IPv6 and IPv4.

Share the implementation for esp6 and esp to avoid
code duplication in addition it could be also used
at various drivers code.

Signed-off-by: Raed Salem <raeds@mellanox.com>
Reviewed-by: Boris Pismenny <borisp@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/esp.h
net/ipv4/esp4.c
net/ipv6/esp6.c