Re: [PATCH ipsec] esp: delete NETIF_F_SCTP_CRC bit from features for esp offload

2021-03-23 Thread Steffen Klassert
On Fri, Mar 19, 2021 at 03:35:07PM +0800, Xin Long wrote: > Now in esp4/6_gso_segment(), before calling inner proto .gso_segment, > NETIF_F_CSUM_MASK bits are deleted, as HW won't be able to do the > csum for inner proto due to the packet encrypted already. > > So the UDP/TCP packet has to do the

[PATCH ipsec] esp: delete NETIF_F_SCTP_CRC bit from features for esp offload

2021-03-19 Thread Xin Long
Now in esp4/6_gso_segment(), before calling inner proto .gso_segment, NETIF_F_CSUM_MASK bits are deleted, as HW won't be able to do the csum for inner proto due to the packet encrypted already. So the UDP/TCP packet has to do the checksum on its own .gso_segment. But SCTP is using CRC checksum, an