net: make skb_gso_*_seglen functions private
authorDaniel Axtens <dja@axtens.net>
Thu, 1 Mar 2018 06:13:40 +0000 (17:13 +1100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Mar 2018 22:49:17 +0000 (17:49 -0500)
commita4a77718ee4053a44aa40fe67247c1afb5ce2f1e
tree7b62a1bae82408a1ba43822d2364ad36f02f4f69
parent80f5974d15ea96c7112604c7999a83a502d15b9f
net: make skb_gso_*_seglen functions private

They're very hard to use properly as they do not consider the
GSO_BY_FRAGS case. Code should use skb_gso_validate_network_len
and skb_gso_validate_mac_len as they do consider this case.

Make the seglen functions static, which stops people using them
outside of skbuff.c

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>
include/linux/skbuff.h
net/core/skbuff.c