Marcelo Ricardo Leitner ae7ef81ef0 skbuff: introduce skb_gso_validate_mtu
skb_gso_network_seglen is not enough for checking fragment sizes if
skb is using GSO_BY_FRAGS as we have to check frag per frag.

This patch introduces skb_gso_validate_mtu, based on the former, which
will wrap the use case inside it as all calls to skb_gso_network_seglen
were to validate if it fits on a given TMU, and improve the check.

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Tested-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-06-03 19:37:21 -04:00
..
2015-08-25 13:37:31 -07:00
2015-05-28 11:23:20 +08:00
2016-04-27 22:48:24 -04:00
2016-05-20 18:03:17 -04:00
2016-04-27 22:48:24 -04:00
2016-05-31 14:07:49 -07:00
2016-05-31 14:07:49 -07:00
2016-05-03 16:08:14 -04:00
2016-05-03 16:08:14 -04:00
2016-04-27 22:48:24 -04:00
2015-02-28 16:56:51 -05:00
2015-11-03 10:52:13 -05:00
2014-05-23 16:28:53 -04:00