Files
android_kernel_xiaomi_sm8450/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-02-15 10:58:17 +00:00
2014-04-18 16:40:08 -07:00
2013-12-23 18:34:58 -08:00
2014-04-26 12:20:32 -04:00
2010-11-23 20:14:46 +00:00
2014-05-13 11:26:27 -04:00
2013-11-15 09:32:21 +09:00
2011-10-29 21:20:22 +02:00
2013-11-09 00:16:29 -05:00
2014-03-11 11:52:47 +01:00
2014-06-01 21:58:02 -07:00
2014-04-03 16:20:58 -07:00
2010-08-04 11:00:45 +02:00
2014-02-13 10:08:52 +05:30
2007-02-09 17:39:36 -05:00
2008-01-28 23:21:18 +01:00
2014-01-16 10:23:02 +10:30
2014-04-01 23:19:14 -04:00
2014-03-10 11:44:42 -04:00
2013-08-22 22:13:54 -07:00
2014-03-10 17:26:19 -07:00
2007-07-10 00:35:17 -04:00
2014-02-20 14:54:28 +01:00
2014-03-04 07:55:47 -08:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2014-01-16 11:15:50 +01: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
2013-12-29 16:34:25 -05:00
2014-03-07 11:41:32 -05:00
2014-04-17 12:30:40 -07:00
2013-09-13 15:09:52 +02:00
2014-03-13 12:11:00 +10:30
2013-08-09 10:49:00 +02:00
2014-01-25 08:55:09 +01:00
2014-04-03 16:20:50 -07:00
2013-04-30 17:04:06 -07:00
2013-08-28 21:35:14 -07:00
2011-09-16 19:20:20 -04:00
2013-12-11 15:52:34 +01:00
2005-04-16 15:20:36 -07:00
2014-02-28 15:36:37 -08:00
2013-12-26 13:29:35 -05:00
2014-05-06 14:02:53 -04:00
2014-04-01 23:19:08 -04:00
2014-03-04 13:51:06 -05:00
2014-01-27 21:02:39 -08:00
2013-11-09 00:16:19 -05:00
2014-04-01 23:19:10 -04:00
2013-10-14 17:15:48 +02:00
2014-03-17 15:14:16 -04:00
2014-03-17 15:15:21 -04:00
2014-01-25 03:14:05 -05: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
2013-10-17 00:36:06 +02:00
2011-11-02 16:07:02 -07:00
2014-03-19 22:24:08 -04:00
2010-02-10 17:47:17 -08:00
2014-02-17 15:01:52 -08:00
2014-03-09 19:53:45 +01:00
2012-10-06 03:05:01 +09:00
2014-01-28 13:20:09 -08:00
2014-04-01 17:08:43 +02:00
2013-12-19 19:09:38 -05:00
2014-01-27 21:02:39 -08:00
2013-09-10 18:56:32 -04:00
2014-02-15 11:55:28 -08:00
2014-02-17 15:01:37 -08:00
2005-04-16 15:20:36 -07:00
2012-08-21 16:28:31 +02:00
2012-10-09 16:22:32 +09:00
2010-11-29 08:55:25 +11:00
2014-04-07 16:35:53 -07:00
2013-10-17 15:53:09 -04:00
2014-01-30 16:56:55 -08:00