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>
Showing
- include/linux/skbuff.h 1 addition, 0 deletionsinclude/linux/skbuff.h
- net/core/skbuff.c 31 additions, 0 deletionsnet/core/skbuff.c
- net/ipv4/ip_forward.c 1 addition, 1 deletionnet/ipv4/ip_forward.c
- net/ipv4/ip_output.c 1 addition, 1 deletionnet/ipv4/ip_output.c
- net/ipv6/ip6_output.c 1 addition, 1 deletionnet/ipv6/ip6_output.c
- net/mpls/af_mpls.c 1 addition, 1 deletionnet/mpls/af_mpls.c
Loading
Please register or sign in to comment