net: xfrm: use skb_gso_validate_network_len() to check gso sizes
authorDaniel Axtens <dja@axtens.net>
Thu, 1 Mar 2018 06:13:39 +0000 (17:13 +1100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Mar 2018 22:49:17 +0000 (17:49 -0500)
commit80f5974d15ea96c7112604c7999a83a502d15b9f
treee5c2bff6cc02a7210656083f76e96bc1055570f4
parentee78bbef8d63202ca0f2485aecf30b8c2b0088cc
net: xfrm: use skb_gso_validate_network_len() to check gso sizes

Replace skb_gso_network_seglen() with
skb_gso_validate_network_len(), as it considers the GSO_BY_FRAGS
case.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/xfrm4_output.c
net/ipv6/xfrm6_output.c