xfrm: remove get_mtu indirection from xfrm_type
authorFlorian Westphal <fw@strlen.de>
Mon, 24 Jun 2019 20:04:48 +0000 (22:04 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 1 Jul 2019 04:16:40 +0000 (06:16 +0200)
commitc7b37c769d2a5e711106a3c793140a4f46768e04
tree49ad85e5a624504acf57dd79b59f28a0913711e5
parent8928aa6a007d0a58f500b79812ea8147ec477090
xfrm: remove get_mtu indirection from xfrm_type

esp4_get_mtu and esp6_get_mtu are exactly the same, the only difference
is a single sizeof() (ipv4 vs. ipv6 header).

Merge both into xfrm_state_mtu() and remove the indirection.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/xfrm.h
net/ipv4/esp4.c
net/ipv6/esp6.c
net/xfrm/xfrm_device.c
net/xfrm/xfrm_state.c