]> git.baikalelectronics.ru Git - kernel.git/commit
udp6: move the mss check after udp gso tunnel processing
authorXin Long <lucien.xin@gmail.com>
Thu, 29 Oct 2020 07:04:56 +0000 (15:04 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Oct 2020 22:23:41 +0000 (15:23 -0700)
commit6cc31354ee46b28dc8f7ce470e3d380835e0b8c3
treea09fec9bce73637e18667031e361ecff39df6096
parent31bfe84d325aa1508030274c65468f07c029bd0f
udp6: move the mss check after udp gso tunnel processing

For some protocol's gso, like SCTP, it's using GSO_BY_FRAGS for
gso_size. When using UDP to encapsulate its packet, it will
return error in udp6_ufo_fragment() as skb->len < gso_size,
and it will never go to the gso tunnel processing.

So we should move this check after udp gso tunnel processing,
the same as udp4_ufo_fragment() does.

v1->v2:
  - no change.
v2->v3:
  - not do any cleanup.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/udp_offload.c