Files
kernel_xiaomi_sm8250/include/linux
Tom Herbert 7e2b10c1e5 net: Support for multiple checksums with gso
When creating a GSO packet segment we may need to set more than
one checksum in the packet (for instance a TCP checksum and
UDP checksum for VXLAN encapsulation). To be efficient, we want
to do checksum calculation for any part of the packet at most once.

This patch adds csum_start offset to skb_gso_cb. This tracks the
starting offset for skb->csum which is initially set in skb_segment.
When a protocol needs to compute a transport checksum it calls
gso_make_checksum which computes the checksum value from the start
of transport header to csum_start and then adds in skb->csum to get
the full checksum. skb->csum and csum_start are then updated to reflect
the checksum of the resultant packet starting from the transport header.

This patch also adds a flag to skbuff, encap_hdr_csum, which is set
in *gso_segment fucntions to indicate that a tunnel protocol needs
checksum calculation

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-06-04 22:46:38 -07:00
..
2014-03-28 20:42:01 +01:00
2014-04-18 16:40:08 -07:00
2014-04-26 12:20:32 -04:00
2014-05-13 11:26:27 -04:00
2014-06-01 21:58:02 -07:00
2014-04-03 16:20:58 -07:00
2014-04-01 23:19:14 -04:00
2014-04-07 16:36:07 -07:00
2014-06-02 16:05:24 -07:00
2014-06-02 14:56:01 -07:00
2014-04-17 12:30:40 -07:00
2014-04-03 16:20:50 -07:00
2014-05-06 14:02:53 -04:00
2014-04-01 23:19:08 -04:00
2014-04-01 23:19:10 -04:00
2014-04-07 10:59:19 -07:00
2014-04-03 16:21:04 -07:00
2014-03-19 15:11:19 -06:00
2014-03-19 22:24:08 -04:00
2014-04-01 17:08:43 +02:00
2014-04-07 16:35:53 -07:00