]> git.baikalelectronics.ru Git - kernel.git/commit
udp: not remove the CRC flag from dev features when need_csum is false
authorXin Long <lucien.xin@gmail.com>
Sat, 16 Jan 2021 05:59:17 +0000 (13:59 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 Jan 2021 06:14:59 +0000 (22:14 -0800)
commitfcff6c547c76a1b9c7d773ea01d7c6f9cbbcbd51
tree121e7cd32e262cae296ba0b26c1ce038b57fce61
parent1556e8188f82c44d72de59ca30a26cd3f0ae3578
udp: not remove the CRC flag from dev features when need_csum is false

In __skb_udp_tunnel_segment(), when it's a SCTP over VxLAN/GENEVE
packet and need_csum is false, which means the outer udp checksum
doesn't need to be computed, csum_start and csum_offset could be
used by the inner SCTP CRC CSUM for SCTP HW CRC offload.

So this patch is to not remove the CRC flag from dev features when
need_csum is false.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Link: https://lore.kernel.org/r/1e81b700642498546eaa3f298e023fd7ad394f85.1610776757.git.lucien.xin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/udp_offload.c